Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 272
  • Last Modified:

URGENT: SSH to server freezes after "Last login: Thu Mar 31 13:52:14 2005 from gateway.domain.com"

I have an urgent problem at work which I need help with.
For some unknown reason, I can no longer log in with ssh to one of my servers.

Regardless of whether I use Putty in win XP or ssh from a linux box I get the following coming up:

login as: root
Sent username "root"
root@192.168.0.71's password:
Last login: Thu Mar 31 13:52:14 2005 from gateway.domain.com

At that point it just hangs and I never get my bash prompt up.  Can anyone help me as I can't afford to reload the server at the moment and there must be a way to fix this without doing that.

The same thing happens when I ssh to the LAN or WAN IP.

Thanks in advance,

Paul.
0
phreak7t7
Asked:
phreak7t7
2 Solutions
 
harbor235Commented:
Is there something wrong with your shell login scripts for root?
Do you have local access to this box? I would check to see which shell
root is using and take a look at root's logi scripts. Just a start


harbor235
0
 
wesly_chenCommented:
Hi,

   Could you post your /etc/ssh/sshd_config and /var/log/messages so people here can have more information to help you?
grep -v "^#" /etc/ssh/sshd_config
grep -i sshd /var/log/messages

   Also, does your login from an machines with DHCP client, which get dynamic IP address?
If yes, make sure your DHCP client have a DNS entry. You can test by
nslookup <DHCP client IP>
to see if you have a hostname entry in DNS server.

   Otherwise, you might need to disable reverse DNS lookup in /etc/sshd_config.

Regards,

Wesly
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now