Operating System - Linux
1830132 Members
2346 Online
109998 Solutions
New Discussion

Re: Can't login with remote access

 
Lisa_64
Occasional Contributor

Can't login with remote access

I'm having problems with remote access. I have recently installed RHEL AS 2.1 on a DL740. I can ping myself and ping out. As far as I can tell all my network settings are correct and ssh is installed. However, I can not login remotely or ssh to other servers. I have restarted the network and sshd. Not sure what I could be missing. I have used the same standard installation process, we use on our DL580's and they work fine. Does anyone have any suggestions on what to look for? Thanks.
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Can't login with remote access

service iptables stop

try again.

make sure iptables isn't blocking port 22 between you and the other box.

check firewalls between the two.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
John Pretti
Advisor

Re: Can't login with remote access

Please execute the following command and paste output below:

netstat -avtn|grep LISTEN

Can you ssh to localhost?
Lisa_64
Occasional Contributor

Re: Can't login with remote access

Tcp 0 0 0.0.0.0:32768 0.0.0.0:* LISTEN
Tcp 0 0 127.0.0.1:32769 0.0.0.0:* LISTEN
Tcp 0 0 0.0.0.0:708 0.0.0.0:* LISTEN
Tcp 0 0 0.0.0.0:32777 0.0.0.0:* LISTEN
Tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
Tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
Tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN
Tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN

I can ssh the local host just fine. I can ssh to other servers using ips, but not domain names. Any other suggestions.
John Pretti
Advisor

Re: Can't login with remote access

OK so SSH is open, and we can SSH to IP's, so you must have a DNS problem. Can you do a nslookup on the target machine's hostname? What does your /etc/resolv.conf look like?

Regards,
John
Lisa_64
Occasional Contributor

Re: Can't login with remote access

We did catch an error in /etc/resolv.conf. When we copied it over there was an "=" sign that should not have been there. We can now ssh to other systems using DNS names. However we still cannot access the server remotely, and we cannot ssh to it from another server. So part of our problem has been fixed.
Vitaly Karasik_1
Honored Contributor

Re: Can't login with remote access

did you try connect via ssh to your server using name or address?
try "nmap your_server" from remote linux in order to understand which ports are open.