LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   strange problem in ssh (https://www.linuxquestions.org/questions/linux-networking-3/strange-problem-in-ssh-609158/)

lin2winwin 12-26-2007 03:54 AM

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.

jakev383 12-26-2007 05:38 AM

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.

jschiwal 12-26-2007 05:56 AM

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


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