LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 06:23 PM   #1
sirius57
Member
 
Registered: Jun 2004
Distribution: puppy linux, suse 10.0, opensuse 11.3, 12.1, mythdora, opensuse 13.1, opensuse tumbleweed
Posts: 602

Rep: Reputation: 36
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, 07:00 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
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, 09:38 PM   #3
sirius57
Member
 
Registered: Jun 2004
Distribution: puppy linux, suse 10.0, opensuse 11.3, 12.1, mythdora, opensuse 13.1, opensuse tumbleweed
Posts: 602

Original Poster
Rep: Reputation: 36
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, 09:43 PM   #4
sirius57
Member
 
Registered: Jun 2004
Distribution: puppy linux, suse 10.0, opensuse 11.3, 12.1, mythdora, opensuse 13.1, opensuse tumbleweed
Posts: 602

Original Poster
Rep: Reputation: 36
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 02:47 PM
[SOLVED] ssh: connect to host localhost port 22: Connection refused hussainv1 Linux - Desktop 6 05-30-2013 05:30 PM
ssh: connect to host port 22: Connection refused nileshraut2009 Ubuntu 1 10-08-2012 05:40 AM
ssh: connect to host 10.137.216.170 port 22: Connection refused bijaya.kumar Linux - Networking 5 02-14-2012 04:39 PM
ssh:connect to host restart port 22: Connection refused myubuntu Linux - Software 20 02-22-2010 11:32 PM

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

All times are GMT -5. The time now is 07:42 AM.

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
Open Source Consulting | Domain Registration