author | ms.service | ms.topic | ms.date | ms.author |
---|---|---|---|---|
alkohli |
databox |
include |
08/03/2020 |
alkohli |
Connect to the VM using the private IP that you passed during the VM creation.
Open an SSH session to connect with the IP address.
ssh -l <username> <ip address>
When prompted, provide the password that you used when creating the VM.
If you need to provide the SSH key, use this command.
ssh -i c:/users/Administrator/.ssh/id_rsa [email protected]
Here is a sample output when connecting to VM:
PS C:\07-30-2020\linux> ssh -l Administrator 10.126.68.186
Administrator@10.126.68.186's password:
Welcome to Ubuntu 18.04.3 LTS (GNU/Linux 5.0.0-1027-azure x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Thu Jul 30 22:56:11 UTC 2020
System load: 0.0 Processes: 105
Usage of /: 5.6% of 28.90GB Users logged in: 0
Memory usage: 12% IP address for eth0: 10.126.68.186
Swap usage: 0%
* Are you ready for Kubernetes 1.19? It's nearly here! Try RC3 with
sudo snap install microk8s --channel=1.19/candidate --classic
https://www.microk8s.io/ has docs and details.
68 packages can be updated.
0 updates are security updates.
*** System restart required ***
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
Administrator@mylinuxvm:
If you used a public IP address during VM creation, you can use that IP to connect to the VM. To get the public IP:
$publicIp = Get-AzureRmPublicIpAddress -Name <Public IP> -ResourceGroupName <Resource group name>
The public IP in this case will be the same as the private IP that you passed during virtual network interface creation.