Computer and IT knowledge - things to know
$ ssh firstname.lastname@example.org -L 3000:10.0.0.1:22
$ ssh -R 3000:localhost:389 email@example.com
$ ssh -f -N -g #-f: background
#-N: no command to execute ...
#-g: disalbe restriction, permitting any host to connect to localally forwareded ports ..
$ ssh root@localhost -p 3000
login without passwort from <originhost> to <destinationhost>
$ ssh-keygen -t dsa -f ~/.ssh/id_dsa -C "comment"
#id_dsa.pub is created ...
#To use the key on other hosts you will be connecting from, copy the ~/.ssh/id_dsa key to the other hosts:
$ scp ~/.ssh/id_dsa you@another-box:.ssh/
$ cat ~/.ssh/id_dsa.pub |ssh firstname.lastname@example.org 'cat - >> ~/.ssh/authorized_keys2'
$ cat ~/.ssh/id_dsa.pub |ssh email@example.com 'cat - >> ~/.ssh/authorized_keys'
computer2know :: thank you for your visit :: have a nice day :: © 2023