hackerschoice / segfault

357 stars 41 forks source link

Tiny welcome message improvement #14

Closed pedrompcaetano closed 2 years ago

pedrompcaetano commented 2 years ago

Hi all,

IMHO the username should be included to the .ssh/config entry:

cat >>~/.ssh/config <<__EOF__
host settlegive
    User root
    HostName de.segfault.net
    IdentityFile ~/.ssh/id_sf-settlegive
    SetEnv SECRET=FZphulozXzEAIsQnVBNURXew
__EOF__
chmod 600 ~/.ssh/config ~/.ssh/id_sf-settlegive
######################################################################
Thereafter use these commands:
--> ssh settlegive
--> sftp settlegive
--> scp settlegive:stuff.tar.gz ~/
--> sshfs -o reconnect settlegive:/sec ~/sec 

It would simplify usage for newcomers and subsequent commands, as noted in the above example. Best, P

DeadPackets commented 2 years ago

This should be easy enough to do, will create a PR for this!