Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Okay I've looked all around the net trying to find someone who has the same problem as me, and I have had no luck. This might be the case because I'm doing something wrong. I'm running a ssh2 server on my redhad box. so far the only luck I have had is when using the command "ssh localhost". that works just dandy. My problem occurs when I try to use telnet instead. I put in "telnet localhost 22" and my output is
"Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
SSH-1.99-OpenSSH_3.4p1"
then, as soon as I push enter i get
"Protocol mismatch.
Connection closed by foreign host."
and I'm back to the prompt.
It seemed like it is half- way work there.... or not? Does this mean that I can't use telnet on a ssh sever? Also, if telnet is supposed to work on a ssh server would it still have all the security or would it be sending out unecrypted text just as it would from a telnet client to a telnet server?
Eventually when I get this all up and running, I hope to be able to remotely access my puter from elsewhere.
I'm sorry if this has been discussed before. If it has I couldn't find it. Please let me know if you need any additional information. Thanks in advance.
you can't use telnet and ssh together. pretty much all telnet does is open a socket connection to a host machine:port. your problem is that ssh is a specific protocol, and the telnet client doesn't know how to provide that.
you need to connect to your ssh daemon using an ssh client (ssh, slogin). telnet will simply not work (thank god). :-)
thank you synkrm. I have a follow up.... I found this site that offers a ssh client written entirely in java.... I have my java up and running fine in mozilla. I can't seem to get it to connect to my server... I type in my local loopback , local loopback ip, and ip addresses and try it with diff ports.... can't seem to get it to work. Maybe this was designed for ssh1 instead of 2? If anyone can get this thing running could you give me some pointers? BTW, I'm really new to all the kind of stuff, so thanks for your patience
i've never used that client. though i don't really think i'd want to. putty works just fine for me. it's quick to download from my http server if i ever need an ssh client, no need to install it, and it has every feature i need.
so i'd go that route first before trying anything exceedingly complex.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.