SSH Flashcards
1
Q
generate ssh public key and using your email as a public key?
A
ssh-keygen -t rsa -C “your_email@example.com”
2
Q
command to use to copy a file to remote server?
A
scp
3
Q
how to add one’s public ssh key to a remote server?
A
cat ~/.ssh/id_rsa.pub | ssh user@remote.server “cat»_space; ~/.ssh/authorized_keys”
4
Q
toggle ssh session using escape character
A
~ and ctrl+Z
5
Q
go back to the stopped ssh session
A
fg %1