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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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:~/

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

How do you sftp into a node?

A

sftp user@hostname

i.e sftp user@172.16.23.4

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

How do you download a file/directory when sftp into a node?

A

get >file

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

How do you upload a file/directory when sftp into a node?

A

put >file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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”

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