LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-04-2014, 09:09 AM   #1
sekhar.hai
LQ Newbie
 
Registered: Jun 2014
Posts: 9

Rep: Reputation: Disabled
Thumbs up ssh connection problem


Hi everyone,

I faced a problem regarding ssh connection refused while connecting to remote machine, the error is here....

ssh: connect to host 192.168.0.154 port 22: Connection refused
 
Old 07-04-2014, 10:28 AM   #2
lapishater276
Member
 
Registered: Jun 2014
Location: Narnia
Distribution: Crunchbang, Arch Linux ARM, Xubuntu
Posts: 43

Rep: Reputation: 0
Try to make sure that ssh is enabled on both devices you are trying to use. If that doesnt help, then make sure you have all the information entered correctly
 
Old 07-04-2014, 10:37 AM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,029

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
run the ssh server as sshd -d -d -d
and run the client as ssh -v -v -v user@host
and report your findings.
 
Old 07-05-2014, 06:22 AM   #4
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 774
Blog Entries: 6

Rep: Reputation: 75
go to machine 192.168.0.154 and execute this
netstat -tanup |grep sshd

if nothing then you need to start the sshd service
 
Old 07-16-2014, 09:37 AM   #5
sekhar.hai
LQ Newbie
 
Registered: Jun 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Hi,

I didnot find any solution from your replies make sure cau u give any better solution for my thread.
 
Old 07-16-2014, 10:20 AM   #6
vmccord
Member
 
Registered: Jun 2012
Location: Lawrence, KS
Distribution: Mostly CentOS
Posts: 67
Blog Entries: 29

Rep: Reputation: Disabled
You have not provided a whole lot of information for us to help you. The connection is refused. It could be refused because you have: entered the wrong IP address, the SSH service is not running, the port number is wrong, firewalls could block all incoming connections, the public keys on the client could no longer be correct. The list of possible problems goes on and on. What have you tried? And what have you checked?
 
Old 07-16-2014, 08:15 PM   #7
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Rep: Reputation: 166Reputation: 166
if this is 'ssh me@192.168.0.154' then it is a local connection but if you want remote without a dns address that seems more difficult.

Fred.
 
Old 07-17-2014, 12:43 AM   #8
Tim Abracadabra
Member
 
Registered: May 2014
Location: USA, Wherever I may Roam
Distribution: Debian w/Xfce, LFS 7.9, ++
Posts: 117

Rep: Reputation: Disabled
Quote:
Originally Posted by sekhar.hai View Post
Hi,

I didnot find any solution from your replies make sure cau u give any better solution for my thread.
One thought, What is the IP address of your system?

If they (SSH host and your system) are on different subnets (subnet > router > other subnet), then you may need a static route to the router for that subnet where the destination host resides.

Ran into that before. For info try man route.

Hope that helps,
Tim

Last edited by Tim Abracadabra; 07-17-2014 at 12:50 AM. Reason: Replace . w/?
 
  


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
SSH connection problem ssiddall Linux - Networking 8 10-30-2012 08:04 AM
ssh connection problem. windstory Linux - Newbie 2 01-02-2009 07:25 PM
A problem with ssh connection lawrence_lee_lee Linux - Software 5 05-16-2008 09:14 AM
Ssh connection Problem ??? ce_emre Linux - Networking 2 10-11-2006 08:22 AM
ssh connection problem klemen Linux - Networking 2 06-19-2005 05:01 AM


All times are GMT -5. The time now is 05:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration