Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In My environment i'm using both rhel5 & fedora 9. My previous administrator generated RSA keys in both rhel5 & fedora machines.In rhel5 (ip 192.168.0.88) fc9 (ip 192.168.0.29) recently i've changed rhel5 system ip 192.168.0.88 to 192.168.0.22, fc 9 ip changed to 192.168.0.29 to 192.168.0.217. In my lan no one is using 192.168.0.217 IP. That's why the reason i assigned that ip to fc9. Now in my system ip is 192.168.0.28, Now i was unable to login through ssh to 192.168.0.29.so again i changed it to 192.168.0.29 to 192.168.0.88 even then also i was unable to ssh to 88 machines from 28.
#ssh admin@192.168.0.88
ssh: connect to host 192.168.0.88 port 22: Connection refused.
# rpm -q telnet-server
telnet-server-0.17-38.el5
# vi /etc/xinet.d/telnet
disable = no
Then # service xinetd restart
# iptables -I INPUT -p tcp --dport 23 -j ACCEPT
# service iptables save
# service iptables restart
Just give following command and make sure that rule is saved.
# iptables -L
when i run the telnet command i was getting the following error.
#telnet ev1@192.168.0.88
ev1@192.168.0.88/telnet: Name or service not known
I enabled ip tables. This process i've done in both rhel5 systems. can any one suggest me how can i login through ssh & telnet.
Try using "ssh -vv <server>" to log in. Determine from these results and the servers logs why the connection is being refused.
Check the "known_hosts" and "authorized_keys" files. If they refer to the IP address of the server or client, the entries won't match.
Also check /etc/ssh/sshd_config. An "AllowUsers" entry like "user@<IP_ADDRESS> may not match.
Check the /etc/hosts files. If they have old entries, the IP numbers won't match the names. An entry in AllowUsers like "user@host" may fail where an entry "user@host.domain will succeed a reverse lookup.
Also check that the permissions of the .ssh directories or the users' home directories aren't too permissive.
In addition to jschiwal's suggestion of using 'ssh -vvv', if you have access to the server logs, you'll probably get some useful information. If not, or if that does not help, try running a separate instance of the ssh server in debug mode (sshd -d): that will give a whole slew of information when you try to ssh to it.
when i was trying with following commands to login through ssh to my local machine remotely i was getting the following errors.
#ssh -vvv 192.168.0.88
OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.0.88 [192.168.0.88] port 22.
debug1: connect to address 192.168.0.88 port 22: Connection refused
ssh: connect to host 192.168.0.88 port 22: Connection refused
#sudo vi /etc/ssh/sshd_config (here in this command Allow Users entry is not entered).
And even i've checked out permissions of the .ssh directories. with telnet with the above given command (telnet -l ev1 192.168.0.88) its working,but not the ssh.
when i was trying to login with ssh -vv <server ip> i was getting the following errors.
#ssh -vv 192.168.0.88
OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.0.88 [192.168.0.88] port 22.
debug1: connect to address 192.168.0.88 port 22: Connection refused
ssh: connect to host 192.168.0.88 port 22: Connection refused
Even i've checked out the entries in .ssh/known_hosts,/etc/hosts. In /etc/ssh/sshd_config its not showing any Allow Users entry. Now i was able to login through telnet (with telnet -l ev1 192.168.0.88) but not through ssh.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.