Added .bashrc part of uberspace example.

This commit is contained in:
Stefan Gaiselmann 2020-11-09 08:32:57 +01:00
parent 4d68bb30ea
commit 4ce29bbf36

View File

@ -43,3 +43,18 @@ See below links to proceed.
* https://aws.amazon.com/de/premiumsupport/knowledge-center/new-user-accounts-linux-instance/ * https://aws.amazon.com/de/premiumsupport/knowledge-center/new-user-accounts-linux-instance/
* https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#retrieving-the-public-key * https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#retrieving-the-public-key
=== Uberspace
Alternative way to include .sshrc by detecting SSH connection.
[source,bash]
----
# User specific aliases and functions
if [ -f ~/.sshrc ] && [ -z "$SSH_CLIENT" ]; then
echo "Not a ssh connection"
else
echo "ssh client is present: $SSH_CLIENT"
. ~/.sshrc
fi
----