I can't SSH into my Ubuntu VM


Unais221

So I went through the notes and tried to install an Oracle virtual machine that could run Ubuntu. Also, I'm having issues with SSH and the long details of the setup process are a bit vague. But I think I did it correctly, mainly setting the sshd_config file to not listen on port 22 and choosing a new port number over 1000. But whether I'm connecting to my VM using PuTTY or using the Windows terminal, I can't make the connection. In most cases it's either a connection timeout issue or port number 1234 being refused (1234 is the number I chose as the listening port). I also pinged both the IP and both my laptop and VM can ping each other with no issues. I also executed the firewall command on my VM: sudo ufw to allow port 1234/tcp and other firewall configurations. For all this preparation, I still can't ssh the computer to my VM. Is there something I might be forgetting?

The side question is, do I have to power on my virtual machine if I want to connect to the virtual machine from another computer?

Helius

You must set the port to forward in Oracle VM Manager. Select the virtual machine, then the gear (settings), in the network you should find the forward button.

network settings

You have to do this because VBox by default creates a virtual internal network and NATs the communication. These settings tell VBox which ports to forward from the local network. Example of ssh and docker composition:

enter image description here

As you can see, you don't even have to change the port number on the virtual guest. The Guest Ip can be found in the virtual machine via ifconfig.

If you want to access the computer from the entire network, you may need additional forwarding in the Windows host, or change it to Attached toa bridged adapter. In the latter case, the VM will appear directly on the card you choose to bridge to.

Related


I can't SSH into my Ubuntu VM

Unais221 So I went through the notes and tried to install an Oracle virtual machine that could run Ubuntu. Also, I'm having issues with SSH and the long details of the setup process are a bit vague. But I think I did it correctly, mainly setting the sshd_confi

Can't SSH to Debian VM from Ubuntu

burakcan.yurttutan I can't connect to Debian 9 Server from Ubuntu OS. Debian 9 is a Virtualbox VM. I modified sshd_configand added new user server1on deb server . The Openssh server is setup on the deb server. Deb server is listening on 0.0.0.0 and -p 22. Alth

Can't SSH to Debian VM from Ubuntu

burakcan.yurttutan I can't connect to Debian 9 Server from Ubuntu OS. Debian 9 is a Virtualbox VM. I modified sshd_configand added new user server1on deb server . The Openssh server is setup on the deb server. Deb server is listening on 0.0.0.0 and -p 22. Alth

Can't view Ubuntu Server (VM) in browser, I can connect using SSH

Matt I can't seem to access my php files in the browser from an external ip. I have an Ubuntu Server VM setup on a Windows desktop. I also own a Windows laptop (outside the network 99% of the time). I have OpenSSH on the server. The server has bridged adapter

Can't view Ubuntu Server (VM) in browser, I can connect using SSH

Matt I can't seem to access my php files in the browser from an external ip. I have an Ubuntu Server VM setup on a Windows desktop. I also own a Windows laptop (outside the network 99% of the time). I have OpenSSH on the server. The server has bridged adapter

I can't ssh to GCE vm using my own generated key pair

Joseph Chen I use the command line below to generate the key pair. ssh-keygen -t rsa -f ~/.ssh/bitnami -C bitnami I copied the contents of bitnami.pub to Metadata SSH Keys. ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIo5My5G5XLjvjs61mRzndTkfSivLch8udMKAzBP53PFmz0z

Can't SSH to VM

Ken I have a VM installed and some custom disk images (CentOS) at work, but I can't SSH into the VM. Here are some things I've tried: [VM]$ ssh root@localhost Password: Great, ssh is using loopback. But when I try from host: ~/VirtualBox VMs% ssh -v -v -v roo

Can't SSH to VM

Ken I have a VM installed and some custom disk images (CentOS) at work, but I can't SSH into the VM. Here are some things I've tried: [VM]$ ssh root@localhost Password: Great, ssh is using loopback. But when I try from host: ~/VirtualBox VMs% ssh -v -v -v roo

Can't SSH to Ubuntu VM from OS X Yosemite

Pokiman I'm trying to SSH into an Ubuntu 14.04 VM from OS X, but can't. I've tried various suggestions from googling, but none seem to work. pingdoesn't work either, and returns host unreachablean error. I'm using "Host Only Adapter" on the guest OS. Both host

Can't use apt or ssh in Ubuntu VM with bridged adapter

RMV Notebook The host is Windows 10 and the guest is Peppermint 10. TL;DR - The guest VM using a specific network adapter has semi-functional network access, the website works fine, but apt/ssh doesn't. If the host is set up to use that network adapter, there

Can't SSH to Ubuntu VM from OS X Yosemite

Pokiman I'm trying to SSH into an Ubuntu 14.04 VM from OS X, but can't. I've tried various suggestions from googling, but none seem to work. pingdoesn't work either, and returns host unreachablean error. I'm using "Host Only Adapter" on the guest OS. Both host

Can't SSH to VM - I've tried a lot of things with no luck

dspacejs I've been trying to SSH into my VM for the past 2 hours with no luck. I can successfully log into my VM directly - but can't SSH into it. Attempt 1: In VirtualBox, I have host-only networking set up. If I SSH to the IP using SSH ssh myredactedusername

Can't SSH to VM - I've tried a lot of things with no luck

dspacejs I've been trying to SSH into my VM for the past 2 hours with no luck. I can successfully log into my VM directly - but can't SSH into it. Attempt 1: In VirtualBox, I have host-only networking set up. If I SSH to the IP using SSH ssh myredactedusername

UFW enabled and now can't connect to my Ubuntu Azure VM

danielpops I opened UFW on ubuntu linux vm on azure and now I can't connect to it via ssh (or any other way). on private and public IPs. Is there any way to connect to my virtual machine now? For example, an iLo interface equivalent to a physical machine? Vinc

UFW enabled and now can't connect to my Ubuntu Azure VM

Daniel Popps I opened UFW on ubuntu linux vm on azure and now I can't connect to UFW via ssh (or whatever). on private and public IPs. Is there any way to connect to my virtual machine now? For example, an iLo interface equivalent to a physical machine? Vince

Why can't Ubuntu in the VM find my FPGA?

Nicholas R. I'm using Ubuntu in a Virtual Box VM to run Quartus II to run programs using an Altera DE2 FPGA. Now, I upgraded to Windows 8.1 and the guest OS (ubuntu 10) cannot find the DE2 board. I think it might be because the host OS (Win 8.1) can't even fin

Can't access the Nexus console on my Ubuntu VM instance in GCP

Sumav I installed Nexus (as a service) on my Ubuntu VM instance, and I also checked the "Allow HTTP Traffic" and "Allow HTTPS Traffic" options when creating the vm instance. When I do a $ tail -f /opt/sonatype-work/nexus3/log/nexus.log, I see Nexus running: 20

UFW enabled and now can't connect to my Ubuntu Azure VM

danielpops I opened UFW on ubuntu linux vm on azure and now I can't connect to it via ssh (or any other way). on private and public IPs. Is there any way to connect to my virtual machine now? For example, an iLo interface equivalent to a physical machine? Vinc

UFW enabled and now can't connect to my Ubuntu Azure VM

danielpops I opened UFW on ubuntu linux vm on azure and now I can't connect to it via ssh (or any other way). on private and public IPs. Is there any way to connect to my virtual machine now? For example, an iLo interface equivalent to a physical machine? Vinc

Why can't Ubuntu in the VM find my FPGA?

Nicholas R. I'm using Ubuntu in a Virtual Box VM to run Quartus II to run programs using an Altera DE2 FPGA. Now, I upgraded to Windows 8.1 and the guest OS (ubuntu 10) cannot find the DE2 board. I think it might be because the host OS (Win 8.1) can't even fin

Can't SSH to Azure VM

Samas Agarwal I have an Ubuntu VM (resource group, not Classic VM) on Azure and it's all available. I recently tried to SSH into a VM using Putty, but I couldn't. I get the error: Network Error: Connection Timed out. I've made sure port 22 is open for SSH in t

Can't SSH to Azure VM

Samas Agarwal I have an Ubuntu VM (resource group, not Classic VM) on Azure and it's all available. I recently tried to SSH into a VM using Putty, but I couldn't. I get the error: Network Error: Connection Timed out. I've made sure port 22 is open for SSH in t

Can't SSH to Azure VM

Samas Agarwal I have an Ubuntu VM (resource group, not Classic VM) on Azure and it's all available. I recently tried to SSH into a VM using Putty, but I couldn't. I get the error: Network Error: Connection Timed out. I've made sure port 22 is open for SSH in t

Can't SSH to Azure VM

Samas Agarwal I have an Ubuntu VM (resource group, not Classic VM) on Azure and it's all available. I recently tried to SSH into a VM using Putty, but I couldn't. I get the error: Network Error: Connection Timed out. I've made sure port 22 is open for SSH in t

Can't SSH to Azure VM

Samas Agarwal I have an Ubuntu VM (resource group, not Classic VM) on Azure and it's all available. I recently tried to SSH into a VM using Putty, but I couldn't. I get the error: Network Error: Connection Timed out. I've made sure port 22 is open for SSH in t

Azure - Why can't I find an attached drive on my VM?

Dave Tapson I created a new virtual machine (A0) using the new Azure portal (resource manager?) and attached a new drive (1023gb) to the virtual machine. When I RDP to the instance, I don't see the new drive. I removed the drive and added the 20gb one, as I th