*This article contains some promotional material.
How to SSH to Linux (Ubuntu) on Parallels
In this article.Parallels DesktopThis section explains how to make an SSH connection to Ubuntu Linux in
Parallelsschool (e.g. of ikebana)Completely free trial versionis available for a risk-free trial. Parallels also offers discount campaigns from time to time.For the latest discount information on Parallels, please visit the official website atPlease check it out from the following page.
↓arrow (mark or symbol) Click here for the official Parallels website
*Free trial is also available here.
How to connect to Parallels Desktop Ubuntu Linux with ssh
Launch the Parallels Desktop application
Select [Control Center
Click the Parallels icon on the Mac menu bar and select "Control Center.
Select Ubuntu Virtual Machine
Installed virtual machines are listed here; select the Ubuntu virtual machine.
Click the "Ubuntu" icon in the upper left corner and click "Terminal
Click on the "Ubuntu" icon in the upper left corner and click on "Terminal".
(computer) promptis here, enter the command after this.
Install net-tools to find out IP address of Ubuntu machine
First install net-tools to find out the IP address of the Ubuntu machine.
Enter the following command, sFor sh communication, openssh-server should also be installed together.
sudo apt install openssh-server
Check the IP address.
Enter the following command and confirm the IP address after the installation is complete.
ip a
Check the IP address with ifconfig included in net-tools.
enp0s5: flags=4163 mtu 1500
inet 10.211.55.3 netmask 255.255.255.0 broadcast 10.211.55.255
...
The address used in this case is the one following the inet on the second line.
Connect to ssh
Enter the following command to make an ssh connection
ssh user-name@ip-address
The ip-address is the one you just checked and the user-name is the user name to log in to parallels. I think the default is user-name: parallels.
When connecting for the first time, you will be asked to confirm the finger print, but there is no problem to proceed. You will be asked to enter your password, but this is not your iMac password, but the user login password for the virtual environment.
If you can successfully log inWelcome to Ubuntu ...
log and I was able to make an ssh connection on the terminal. To try it outpwd
and ... andls
to check the directory and you will find that you are in a virtual machine.
Connect to ssh without password
Now you can connect to ssh, but now you will be asked for your login password every time you connect to ssh, so give them your public key and skip entering the password.
Pass the public key of the ssh key you created beforehand at the beginning. You can drag and drop, but use the scp command to pass the public key.
scp ~/.ssh/~~~.pub [email protected]:~/.ssh/authorized_keys
After passing the public key, the next step is to specify the private key to be used for the ssh connection, so add config.
~/.ssh/config
Host parallels
User parallels
HostName 10.211.55.3
Identityfile ~/.ssh/~~~
IdentitiesOnly yes
The hostname can be any name and is passed to the ssh command. Identityfile is the path to the private key attached to the public key you just created. identitiesOnly must be set to yes because Identityfile must be passed.
Once the above settings are complete, thesshparallels
to make an ssh connection.
↓arrow (mark or symbol) Click here for the official Parallels website
*Free trial is also available here.
summary
In this article.Parallels Desktopexplained how to make an SSH connection to Ubuntu Linux in
Parallelsschool (e.g. of ikebana)Completely free trial versionis available for a risk-free trial. Parallels also offers discount campaigns from time to time.For the latest discount information on Parallels, please visit the official website atPlease check it out from the following page.
↓arrow (mark or symbol) Click here for the official Parallels website
*Free trial is also available here.