Azhop enable ssh access to ondemand node
To enable ssh to the ondemand node, you need to
- Change the NSG rule to allow inbound traffic on port 22;
- Edit
/etc/ssh/sshd_config
file on the ondemand node, changePasswordAuthentication
to yes, then restart sshd.
Here are the details:
- Find ‘network settings’ in the ondemand VM resource page. Click on it.
- On the next page, click on , and select Inbound port rule.
- Add a NSG rule similar to this one. Feel free to limit ‘Source’ and ‘port ranges’ as needed.
- Click ‘Add’ to save the changes. Please note the NSG change may take a few minutes to become effective.
- From the ondemand node
[hpcadmin@ondemand ~]$ sudo vim /etc/ssh/sshd_config PasswordAuthentication yes [hpcadmin@ondemand ~]$ sudo systemctl restart sshd
This should allow you to ssh into the ondemand node as any user.