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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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: connect to host 192.168.0.88 port 22: Connection refused.
# rpm -q telnet-server
# 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.
firstname.lastname@example.org/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 "email@example.com 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 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.