Changes

Jump to: navigation, search

OPS445 Online Lab8

2 bytes removed, 08:05, 20 March 2022
m
PART 2: Connect to VM in myvmlab.senecacollege.ca
tmpfs 177960 0 177960 0% /run/user/1002
</source>
:#Logout from your VM and get back to matrix.:#The previous SSH command when executed successfully, 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 when executing the corresponding commands in the login shell.:#Please note that your VM was configured to asked ask for the user's password for every SSH connection attemp. We are going to change that behaviour next.
==PART 3: Set up SSH login with public key authentication ==
572
edits

Navigation menu