LinuxQuestions.org
Visit Jeremy's Blog.
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 12-26-2007, 03:54 AM   #1
lin2winwin
LQ Newbie
 
Registered: Nov 2007
Posts: 26

Rep: Reputation: 15
strange problem in ssh


Hi,

I have setup my home pc as ssh server. The router is set to forward the port 5022 to 22 in my home pc.
I used to connect my home pc from office to update the files using rsync. I use key based ssh connection to avoid prompting for password.

Recently, I get the error as
ssh: connect to host myhomepc.no-ip.org port 5022: Connection refused

The strange thing is that, I was able to connect to home pc from another pc in my office. I somehow got kicked off by my own pc []

Then, I deleted the .ssh directory in my home pc and tried again. It worked for the first time I connected. But, when I tried rsync next time, it didnt respond, and I am back to square one.

I didnot enable the firewall. The security setting is standard... I dont know what I am missing...

It would be great if anyone can help me figure this out.
 
Old 12-26-2007, 05:38 AM   #2
jakev383
QmailToaster Developer
 
Registered: Dec 2005
Location: Burlington, NC
Distribution: CentOS, Voyage, Debian, Fedora
Posts: 220

Rep: Reputation: 31
What sounds like it happening is the identification key for your machine is changing. I don't think there's anything wrong with your home PC, but you'll need to figure out why your other machine keeps regenerating it's RSA key.
 
Old 12-26-2007, 05:56 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
One thing to check is the permissions on the private key. Make sure you are the only one who can read the file.
 
  


Reply



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
Strange SSH problem (connected but not active) freakolowsky Linux - Networking 3 12-17-2007 04:00 PM
Strange SSH problem graw Linux - Networking 6 12-15-2004 04:47 PM
strange ssh problem yull Linux - Security 8 12-11-2004 02:58 PM
Strange ssh problem Inexactitude *BSD 2 04-05-2004 01:37 PM
Strange! SSH and Telnet login problem McSmooth Linux - General 7 10-03-2003 09:24 AM

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

All times are GMT -5. The time now is 05:31 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