Changes

Jump to: navigation, search

OPS435 Python3 Lab 8

108 bytes added, 15:32, 3 July 2020
PART 2: Connect to VM in myvmlab.senecacollege.ca
</source>
:Logout from your VM and get back to matrix.
:The previous SSH command when execute executed successfully, with create created a login shell on the remote machine. If the previous SSH command is followed by a specific bash command, it will be executed on the remote host instead of creating a login shell. Consider the following:<source lang='bash'>
[raymond.chan@mtrx-node05pd lab8]$ ssh -p 7200 student@myvmlab.senecacollege.ca 'hostname;id;df'
student@myvmlab.senecacollege.ca's password:
tmpfs 177960 0 177960 0% /run/user/1002
</source>
:The three shell commands: hostname, id, and df were executed sequentially. Compare the outputs above with the previous results from when executing the corresponding commands in the login shell.:Please note that you were asked to provide the user's password for each every SSH connection.
==Part 3: Set up SSH login with public key authentication ==
1,760
edits

Navigation menu