LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-01-2017, 07:23 PM   #1
sirius57
Member
 
Registered: Jun 2004
Distribution: Fedora core 1, puppy linux, suse 10.0, opensuse 11.3, 12.1, mythdora, opensuse 13.1
Posts: 503

Rep: Reputation: 33
can ping between linux host and linux vm both ways but ssh connection refused


I am unable to connect between my opensuse 13.1 host and Slitaz 4.0 guest in virtual box. Guest additions have been installed in the VM. The virtualbox nic is set to bridged so both are on the same subnet. I can ping both ways ok, but I can not establish an ssh connection. It complains with connection refused. I never set up NFS services for a linux network and feel that may be the problem. Is there a way to troubleshoot network services besides using the ping command?
 
Old 12-01-2017, 08:00 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,430

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
Verify the ssh server is running on the operating system you want to establish with a remote connection.

Verify if the firewall is running on the above system that it allows incoming traffic on port 22. Post if you changed anything from the default settings.

On the other system (the client) you should be able to run the command:

ssh username@IP_address_of_ssh_server

There are several ways to troubleshoot

nmap -p 22 IP_address_of_ssh_server

telnet IP_address_of_ssh_server 22
 
1 members found this post helpful.
Old 12-02-2017, 10:38 PM   #3
sirius57
Member
 
Registered: Jun 2004
Distribution: Fedora core 1, puppy linux, suse 10.0, opensuse 11.3, 12.1, mythdora, opensuse 13.1
Posts: 503

Original Poster
Rep: Reputation: 33
Success! I tested ssh in opensuse with systemctl status sshd | grep active
reply was inactive, so I used systemctl start sshd and ran the above again and it was active.
The ssh service is open in the firewall local network.
On the virtualbox slitaz, I had to install openssh. I had assumed the service was installed beforehand.
I was able to run filezilla and transfer files between the host and guest. Slitaz is a bit different than opensuse in how services are started.
 
Old 12-02-2017, 10:43 PM   #4
sirius57
Member
 
Registered: Jun 2004
Distribution: Fedora core 1, puppy linux, suse 10.0, opensuse 11.3, 12.1, mythdora, opensuse 13.1
Posts: 503

Original Poster
Rep: Reputation: 33
I also had to use a fixed ip address in the slitaz virtual machine.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ssh: connect to host 192.168.1.66 port 22: Connection refused redd9 Linux - Networking 4 03-20-2014 03:47 PM
[SOLVED] ssh: connect to host localhost port 22: Connection refused hussainv1 Linux - Desktop 6 05-30-2013 06:30 PM
ssh: connect to host port 22: Connection refused nileshraut2009 Ubuntu 1 10-08-2012 06:40 AM
ssh: connect to host 10.137.216.170 port 22: Connection refused bijaya.kumar Linux - Networking 5 02-14-2012 05:39 PM
ssh:connect to host restart port 22: Connection refused myubuntu Linux - Software 20 02-23-2010 12:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration