LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SSH to remote host (https://www.linuxquestions.org/questions/linux-newbie-8/ssh-to-remote-host-4175461718/)

sn0rcha 05-13-2013 03:07 AM

SSH to remote host
 
Hey guys,

I'm having a strange problem where I can't SSH into one of my servers from another.

I'm using the format:

ssh "username@host"

I can log into the server in question just fine using Putty from my windows computer, but whenever I try and ssh from another linux server to it, it always says incorrect password even when using the correct password.

Does anyone know why this would happen?

Many thanks,
Sn0rcha

evo2 05-13-2013 03:30 AM

Hi,

there are a number of things that could cause this. To find out what is going on run your ssh client with verbose output turned on (ssh -vvv), and also look at the sshd output in the logfile (if you have permission to read it). Where sshd logs is distro specific, but on Debian derived systems you can look in /var/log/auth.log. If you don't have permission to read that log, you can try starting a separate sshd instance in debug mode on a high numbered port, and then try to ssh to that. Eg

Code:

/usr/sbin/sshd -d -p 6666
Cheers,

Evo2.

sn0rcha 05-13-2013 04:48 AM

Turns out I had a conflict with my router port, doh!

evo2 05-13-2013 04:52 AM

Hi,
Quote:

Originally Posted by sn0rcha (Post 4950002)
Turns out I had a conflict with my router port, doh!

Ok. Glad it is working now. If this problem is really solved, please use the thread tools to mark it as such.

Cheers,

Evo2.


All times are GMT -5. The time now is 02:52 AM.