Guy's, I have a fresh VM with Ubuntu Server. The only things that I have done with it are installing updates & upgrades, and openssh-server. I have gone in to the sshd-config file and removed the comment symbol in front of Port 22. I then restarted ssh server and tried to connect using putty and it fails every time. the message states that the target machine refused it. I have combed through a lot of web sites attempting to find where I am going wrong but to no avail. Could someone either direct me to a easy to understand (step by step) page or tell me what I might be doing wrong?
I am using the latest VBox, guest additions, Win 10 host. I am attempting to build a Minecraft server that I can play by myself or with my kids. I don't need any outside connections.
Thanks...
SSH Connections
-
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: SSH Connections
- You didn't mention your network setup, your host's and guest's IPs (and other config variables). I don't know where or how you're trying to connect.
- Can you even ping the guest from the host?
- From the host, post the output of:
ipconfig /all
- From the guest, post the output of:
nmcli device show
- "Win10" isn't enough, "Win10 1607, build 14393.969" is much better.
- "Ubuntu" isn't enough, "Ubuntu 16.04, 4.4.0-59-generic #80-Ubuntu SMP" is much better.
- "The latest VirtualBox" isn't enough, "VirtualBox 5.1.22 r115126" is much better.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
-
- Posts: 3
- Joined: 20. Dec 2010, 17:53
- Primary OS: MS Windows 7
- VBox Version: OSE other
- Guest OSses: Fedora
Re: SSH Connections
Sorry:
"Win10" isn't enough, "Win10 1607, build 14393.969" is much better." - Win10 version 1803 build 17134.228
"Ubuntu" isn't enough, "Ubuntu 16.04, 4.4.0-59-generic #80-Ubuntu SMP" is much better." - Ubuntu 18.04.1 LTS Bionic
"The latest VirtualBox" isn't enough, "VirtualBox 5.1.22 r115126" is much better." - VB version 5.2.18 r124319 (Qt5.6.2)
I have 2 network adapters set up: Adapter #1 - NAT Adapter #2 Bridged
I have not tried to ping my VM.
This VM will run on the same machine that I will be playing on, so everything is local. I also don't want it public; only available on my local network.
"Win10" isn't enough, "Win10 1607, build 14393.969" is much better." - Win10 version 1803 build 17134.228
"Ubuntu" isn't enough, "Ubuntu 16.04, 4.4.0-59-generic #80-Ubuntu SMP" is much better." - Ubuntu 18.04.1 LTS Bionic
"The latest VirtualBox" isn't enough, "VirtualBox 5.1.22 r115126" is much better." - VB version 5.2.18 r124319 (Qt5.6.2)
I have 2 network adapters set up: Adapter #1 - NAT Adapter #2 Bridged
I have not tried to ping my VM.
This VM will run on the same machine that I will be playing on, so everything is local. I also don't want it public; only available on my local network.
- Attachments
-
- ipconfig_nmcli
- ipconfig-nmcli.png (80.45 KiB) Viewed 1488 times
-
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: SSH Connections
From your host:
So,
and from your guest:IPv4 Address. . : 192.168.1.2(Preferred) Subnet Mask . . : 255.255.255.224 Default Gateway : 192.168.1.1
I honestly don't know why your router (most probably) is issuing such a narrow mask, allowing addresses between 192.168.1.2 and 192.168.1.31 to communicate directly with each other, that's a rather unusual setting. But, it should be OK, since the setup allows your host to talk to your guest and vice versa.IP4.ADDRESS[1]: 192.168.1.24/27 IP4.GATEWAY: 192.168.1.1
So,
- What happens if you ping 192.168.1.2 from your guest, or 192.168.1.24 from your host? Provided of course that the firewalls of both allow pings.
- What happens if you try to connect to 192.168.1.24 from your host?
- Do you have a server running on the guest, an SSH server?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
-
- Posts: 16
- Joined: 22. Aug 2018, 19:55
- Primary OS: Linux other
- VBox Version: OSE Debian
- Guest OSses: Windows 10
Re: SSH Connections
Do you have a firewall running on the VM? If so, you'll need to configure it to allow ssh, something like:
Code: Select all
sudo ufw allow ssh
[Linux Mint 19.1 Cinnamon Host, 16GB RAM, Nvidia GeForce 960 v430.26]