Remote Commands Flashcards
1
Q
How do you ssh into a node?
A
ssh user@hostname
ssh -l user hostname
i.e ssh user@172.16.23.4
2
Q
How do you scp copy files?
A
scp source user@destination:
scp user@source: destination
i.e scp file user@172.16.23.4:~/
3
Q
How do you sftp into a node?
A
sftp user@hostname
i.e sftp user@172.16.23.4
4
Q
How do you download a file/directory when sftp into a node?
A
get >file
5
Q
How do you upload a file/directory when sftp into a node?
A
put >file
6
Q
How do you run a command on a node without permanently logging in?
A
ssh user@hostname >command<
i.e ssh user@172.16.23.4 “touch file1”