LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-06-2008, 12:16 PM   #1
randomman
LQ Newbie
 
Registered: Nov 2007
Posts: 26

Rep: Reputation: 15
openssh connection refused


greetings everyone

i used to be able to ssh to a server at university ... and then for some reason i started getting this message

Quote:
ssh: connect to host [server] port 22: Connection refused
i contacted the administrator and he said that he can ssh fine to the server.

it only happens with this server and other servers on same network. i still can ssh to another server on a different network with no problem.

please, some help

thanx

i am using kubuntu 8.04 on T42 thinkpad

and same happens with sftp

Last edited by randomman; 08-06-2008 at 12:24 PM.
 
Old 08-06-2008, 12:48 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
You identified the problem yourself....

Quote:
Originally Posted by randomman View Post
it only happens with this server and other servers on same network. i still can ssh to another server on a different network with no problem.
You probably don't have a route to that network anymore...either something got hosed up with your address (don't know if you're using DCHP or not), the router/switch further upstream is having a problem, or if something got misconfigured on your system. You don't say if you made any changes, so it's hard to say.

SFTP and SSH both use port 22. Can you telnet/FTP, or use any other protocol to that server to test?
 
Old 08-06-2008, 01:10 PM   #3
randomman
LQ Newbie
 
Registered: Nov 2007
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by TB0ne View Post
You identified the problem yourself....

You probably don't have a route to that network anymore...either something got hosed up with your address (don't know if you're using DCHP or not), the router/switch further upstream is having a problem, or if something got misconfigured on your system. You don't say if you made any changes, so it's hard to say.

SFTP and SSH both use port 22. Can you telnet/FTP, or use any other protocol to that server to test?
thanx for replying

i am using dhcp on wireless

ftp command
ftp: connect: Connection refused

telnet
telnet: Unable to connect to remote host: Connection refused

i am using guarddog for fireall

i dont remember exactly how i caused this problem. it was too late last night and i think i was trying to sftp my folders using dolphin file browser (comes with kde on kubuntu) and then i started getting this problem (i think when i typed the wrong login or server information by mistake)


anyways .... just reset the modem/router and it works fine now. probably was the modem firewall. thanx for the tip. i had a hunch i needed to reset the modem but was too lazy to get off my butt and walk to the modem and do it ... so i chose to waste 10 hours trying resolve the problem ... not the first time i make bad choices

Last edited by randomman; 08-06-2008 at 04:27 PM.
 
  


Reply

Tags
openssh, sftp, ssh



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
Socket Connection Failed: 111 Connection Refused degraffenried13 Linux - General 3 05-31-2009 01:17 AM
eth0 going down (connection reset by peer, then connection refused) Astarath Slackware 1 09-05-2007 05:14 AM
lp filename yields "cannot open connection to localhost - Connection refused" jjge Linux - General 3 12-28-2003 11:02 PM
Seting up a secure OpenSSH / Putty Connection... Help :) MrCarl Linux - Software 2 09-23-2003 09:27 AM
OpenSSH configuration/connection tarballedtux Linux - Security 3 09-18-2001 03:37 PM

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

All times are GMT -5. The time now is 03:53 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
Open Source Consulting | Domain Registration