Added .bashrc part of uberspace example.
This commit is contained in:
parent
4d68bb30ea
commit
4ce29bbf36
17
README.adoc
17
README.adoc
@ -42,4 +42,19 @@ Better try modifications with a new user to keep the defaul user accessible to t
|
|||||||
See below links to proceed.
|
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
|
||||||
|
----
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user