LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   failed to connect to my linux with ssh (https://www.linuxquestions.org/questions/linux-software-2/failed-to-connect-to-my-linux-with-ssh-244897/)

zecodela 10-19-2004 11:24 PM

failed to connect to my linux with ssh
 
hi,
i use putty to connect my linux thro' ssh. i sure my sshd daemon is running and i can get follow event log in putty.
2004-10-20 11:22:05 Looking up host "192.168.1.130"
2004-10-20 11:22:05 Connecting to 192.168.1.130 port 22
2004-10-20 11:22:05 Server version: SSH-1.99-OpenSSH_3.5p1
2004-10-20 11:22:05 We claim version: SSH-2.0-PuTTY-Release-0.55
2004-10-20 11:22:05 Using SSH protocol version 2
2004-10-20 11:22:05 Doing Diffie-Hellman group exchange

my putty just have no response then... what i can do? also, where can i get the sshd's log?(i cant see anything related in /var/log/)
the interesting thing is that work b4 and failed after i did sth on the config. file. but, these things should not related.

so, any help?

thanks,
jim

Hangdog42 10-20-2004 08:32 AM

At least on my system, sshd logs to /var/log/messages. You also might try looking at the syslog.

Quote:

the interesting thing is that work b4 and failed after i did sth on the config. file.
Could you explain what you did in a bit more detail?

zecodela 10-20-2004 11:58 PM

i found below message when client connect to server in /var/log/secure.
so, any hints to the problem?


========================

Oct 21 11:55:35 vps-linux sshd[3531]: error: Bad prime description in line 156
Oct 21 11:55:35 vps-linux sshd[3531]: error: Bad prime description in line 157
Oct 21 11:55:35 vps-linux sshd[3531]: error: Bad prime description in line 158
Oct 21 11:55:35 vps-linux sshd[3531]: error: Bad prime description in line 159
Oct 21 11:55:35 vps-linux sshd[3531]: error: Bad prime description in line 160
Oct 21 11:55:35 vps-linux sshd[3531]: error: Bad prime description in line 161
Oct 21 11:55:35 vps-linux sshd[3531]: error: Bad prime description in line 162
Oct 21 11:55:35 vps-linux sshd[3531]: error: Bad prime description in line 163
Oct 21 11:55:35 vps-linux sshd[3531]: error: Bad prime description in line 164
Oct 21 11:55:35 vps-linux sshd[3531]: WARNING: no suitable primes in /etc/ssh/primes

Hangdog42 10-21-2004 01:52 AM

Well, you obviously have a bad primes file. I guess I'd be tempted to re-install ssh as I have no idea how to fix this file.


All times are GMT -5. The time now is 03:06 PM.