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”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

command to use to copy a file to remote server?

A

scp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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&raquo_space; ~/.ssh/authorized_keys”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

toggle ssh session using escape character

A

~ and ctrl+Z

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

go back to the stopped ssh session

A

fg %1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly