| Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise. |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-06-2007, 11:16 PM
|
#1
|
|
Member
Registered: Dec 2007
Posts: 30
Rep:
|
setting up telnet on redhat enterprise linux 5
i want to practice from work and i have a server at home that i just set up so can anyone tell me how to set up telnet on my red hat????
|
|
|
|
12-07-2007, 02:17 AM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,824
|
don't use telnet, use ssh instead, it'll already be fully working in terms of the machine itself, but you'll presumably be needing to do some port forwarding on a home router and such to reach it... http://portforward.com.
|
|
|
|
12-07-2007, 06:13 AM
|
#3
|
|
Member
Registered: Dec 2007
Posts: 30
Original Poster
Rep:
|
Quote:
Originally Posted by acid_kewpie
don't use telnet, use ssh instead, it'll already be fully working in terms of the machine itself, but you'll presumably be needing to do some port forwarding on a home router and such to reach it... http://portforward.com.
|
i already did port forwarding using my virture server selection in my router.... i looked into service config on the linux r.h.e box and it said sshd is running but when i try to log in using putty it still doesnt work. Can anyone tell me step by step how to config the r.h.e 5 server box
|
|
|
|
12-07-2007, 07:24 AM
|
#4
|
|
LQ Newbie
Registered: Nov 2002
Location: Morris Plains, NJ
Distribution: FC 3-8, RH3-4
Posts: 17
Rep:
|
first test it from within your home network, (google "putty" first thing that pops up is one of the more popular of hundreds of ssh clients available - download it to a windows or other box on the same LAN as your home server) open putty or another SSH client, and simply put in the LOCAL (non-routeable) IP of the home server. I have yet to see an RH / Fedora build that doesn't have an SSH daemon running post (typical) install. For this excesize we'll assume you went with a somewhat normal install. If that doesn't work go back and check your firewall and SELinux settings on the RH box. Firewall settings can easily be accessed by typing "setup" from a root prompt. You're going to need to make sure its either turned off or have TCP port 22 allowed. Do a google search for SELinux, but I would recommend just disabling it until you have SSH functioning, then go back and update it appropriately. After changing SELinux you'll have to reboot. Next, retest - you should definately be able to SSH to your home server from within your LAN at this point. Next you'll have to mess with your main router / firewall. It will be easiest to activate remote administration temporarily for your router. Check and make sure you have TCP 22 forwarded to whatever the local ip is for your RH server. Go to work, test. if it still fails log into your router and double check your work. If it all seems correct but youre' still failing, go to a friends house and check from there. Its entirely possible your corporate IT dept is blocking outgoing SSH requests.
|
|
|
|
12-07-2007, 05:32 PM
|
#5
|
|
Member
Registered: Dec 2007
Posts: 30
Original Poster
Rep:
|
Quote:
Originally Posted by Aaronk
first test it from within your home network, (google "putty" first thing that pops up is one of the more popular of hundreds of ssh clients available - download it to a windows or other box on the same LAN as your home server) open putty or another SSH client, and simply put in the LOCAL (non-routeable) IP of the home server. I have yet to see an RH / Fedora build that doesn't have an SSH daemon running post (typical) install. For this excesize we'll assume you went with a somewhat normal install. If that doesn't work go back and check your firewall and SELinux settings on the RH box. Firewall settings can easily be accessed by typing "setup" from a root prompt. You're going to need to make sure its either turned off or have TCP port 22 allowed. Do a google search for SELinux, but I would recommend just disabling it until you have SSH functioning, then go back and update it appropriately. After changing SELinux you'll have to reboot. Next, retest - you should definately be able to SSH to your home server from within your LAN at this point. Next you'll have to mess with your main router / firewall. It will be easiest to activate remote administration temporarily for your router. Check and make sure you have TCP 22 forwarded to whatever the local ip is for your RH server. Go to work, test. if it still fails log into your router and double check your work. If it all seems correct but youre' still failing, go to a friends house and check from there. Its entirely possible your corporate IT dept is blocking outgoing SSH requests.
|
ok my router is set to port 23.... do i need to use 22 or does it not matter
|
|
|
|
12-07-2007, 06:13 PM
|
#6
|
|
Member
Registered: Dec 2007
Posts: 30
Original Poster
Rep:
|
ok, in putty i switched it to ssh (whats the dif between that and telnet) and cant log into it outside the router or inside the network either... i did make sure that ssh was cut on... and i switch the router from port 23 to 22 but its still not working
|
|
|
|
12-07-2007, 08:48 PM
|
#7
|
|
Guru
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Rep: 
|
Telnet's default port is 23
Telnet sends EVERYTHING including your username and password in PLAIN TEXT so anyone can read it..
You should only use telnet if the box you are connecting to cannot do SSH and you have absolutely no other possible secure options available. Never is a good time to use telnet..
SSH default port is 22
SSH Encrypts your connection including your username and password.
When using putty select SSH
Your Router should be set to forward Port 22 to your RHEL box..
Provided your sshd is configured to accept connections on port 22 (netstat -alnp | grep ::22) and there is no firewall on your RHEL box (iptables -L) that is blocking port 22, or the firewall is configured to accept connections on port 22.. then you should be able to connect..
Last edited by farslayer; 12-07-2007 at 08:49 PM.
|
|
|
|
12-08-2007, 05:25 PM
|
#8
|
|
Member
Registered: Dec 2007
Posts: 30
Original Poster
Rep:
|
Well i have a dlink gaming router ... forgot model number
right now i am trying from inside the network first
have ip hard coded in box which is 192.168.0.155
ssh is activated but firewall is not
rhl box can get on the internet itself
i am using putty (is this the best ssh/telnet software out there)
it keeps freezing up if i use ssh or when i try to use telnet it trys to connect and then blows away
|
|
|
|
12-08-2007, 06:51 PM
|
#9
|
|
Member
Registered: Dec 2007
Posts: 30
Original Poster
Rep:
|
ok... got that part figured out.... it was supposed to be imputted as so .... whatevertheacctnameis@84.34.44.4 .....
so i got it now... i am able to log in from internally and externally.... thanks for all the help guys.... i am a rookie on this trying to get my linux+ sometime early next year so wish me luck
ps. whats the best ssh software out there that i can use on my computer and one for my pocketpc device????
Last edited by rockjr; 12-08-2007 at 06:59 PM.
|
|
|
|
12-09-2007, 06:58 AM
|
#10
|
|
LQ Newbie
Registered: Nov 2002
Location: Morris Plains, NJ
Distribution: FC 3-8, RH3-4
Posts: 17
Rep:
|
From a windows environment I use Putty ( http://www.chiark.greenend.org.uk/~s.../download.html). From my Linux environments I use open source SSH client that comes with the OS from the command line
.
|
|
|
|
12-10-2007, 01:38 PM
|
#11
|
|
LQ Newbie
Registered: Aug 2006
Location: Alameda, California
Distribution: debian, ubuntu
Posts: 4
Rep:
|
Rick Moen's ssh client list
Check Rick Moen's list at: http://linuxmafia.com/ssh/ to find an ssh client you can use from your other machines, whatever OS they run.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:43 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|