Changes

Jump to: navigation, search

OPS435 Python3 Lab 8

2 bytes removed, 12:42, 3 July 2020
PART II: Connect to VM in myvmlab.senecacollege.ca
: This VM will be used as the remote Linux machine in our Fabric environment. Login to matrix and try the following SSH command to test the connectivity between matrix and your assignment VM:
<pre>
[raymond.chan@mtrx-node05pd lab8]$ ssh -p 7211 7200 student@myvmlab.senecacollege.ca
student@myvmlab.senecacollege.ca's password:
Last login: Fri Jul 3 11:06:24 2020 from mtrx-node05pd.dcm.senecacollege.ca
:Logout from your VM and get back to matrix.
:The previous SSH command when execute successfully, with create a login shell on the remote machine. If the previous SSH command is followed by specific bash command, it will be executed on the remote host instead of a login shell:<source lang='bash'>
[raymond.chan@mtrx-node05pd lab8]$ ssh -p 7211 7200 student@myvmlab.senecacollege.ca 'hostname;id;df'
student@myvmlab.senecacollege.ca's password:
centos7
</source>
:Compare the outputs above with the previous results from executing the corresponding commands in the login shell.
:Please note that you were asked to provide the user's password for each SSH connection.
==Part III: Set up SSH login with public key authentication ==
: In order for your controller workstation to automate tasks execution on your VM, you will need to be able to connect to it using SSH public key authentication instead of using password authentication. You've done this in both OPS235 and OPS335, and here is summary on how to do it between your account on matrix and your VM:
1,760
edits

Navigation menu