LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   telnet to port 22 (https://www.linuxquestions.org/questions/linux-newbie-8/telnet-to-port-22-a-535066/)

icechong 03-06-2007 09:11 AM

telnet to port 22
 
Hi there,

this might be a very simple question until i cannt manage to find the solution over googles.

for some reason, i cannt install ssh client such as Putty into my WinXP. i would like to telnet to port 22 for ssh purpose. with cmd,

~#telnet 123.123.123.123 22
~#SSH-2.0-OPENSSH-4.3
~#

what should in at the next step put in so that i can log in?

i have tried

~#user myusername

and also

~#login myusername

but both doesnt work.

thanks.

timmeke 03-06-2007 09:17 AM

The ssh protocol (version 2 in your case) isn't that easy, as it probably involves some handshaking, some exchange of encryption information, etc.
Hence, it's not recommend to just use telnet to port 22.

Rather, I'd like to focus on why installing PuTty (or another ssh client) fails for you. Can you give us details on that?

nx5000 03-06-2007 09:24 AM

Yes, impossible with telnet. telnet talks telnet protocol (there's nearly nothing more than the data but still). Ssh talks ssh protocol.
They won't understand each other!

timmeke 03-06-2007 09:27 AM

@nx5000: actually, you can use telnet to talk whatever protocol you like. The tricky part is that you need to actually know and follow the protocol yourself, which may be described in some RFCs and stuff, so not at all that easy!
For example, you can use telnet to talk to a mail server, following the very easy SMTP protocol and then send out mails that way.

nx5000 03-06-2007 11:09 AM

Yes, but telnet has its additions, like sequence controls and other stuffs I can't remember :D
Take netcat for example. This is RAW TCP data, nothing more.
If you add option -t to netcat, it will talk telnet.

So there is a little difference.
telnet is a tool but it's also a protocol. /usr/bin/telnet talks telnet protocol.

I used to simulate a ftp client for security testing with 2 netcat, that's funny and very instructive.

netcat is a good tool, socat is another one.

Simulating ssh is probably nearly impossible, so for the OP, putty or switch to linux :)

Reminds me of old questions found on IRC
"How to hack with telnet"
:)

icechong 03-06-2007 08:04 PM

Quote:

Originally Posted by timmeke
The ssh protocol (version 2 in your case) isn't that easy, as it probably involves some handshaking, some exchange of encryption information, etc.
Hence, it's not recommend to just use telnet to port 22.

Rather, I'd like to focus on why installing PuTty (or another ssh client) fails for you. Can you give us details on that?


I cannt install PuTty because i dont have the administrator right to install any software into my notebook computer which is belongs to company.

in this case, i will try to find other solutions.

thanks for all your help.

IBall 03-06-2007 08:52 PM

Quote:

Originally Posted by icechong
I cannt install PuTty because i dont have the administrator right to install any software into my notebook computer which is belongs to company.

in this case, i will try to find other solutions.

thanks for all your help.

I assume you mean that the laptop is owned by your employers?

Perhaps it would be worth asking them to install Putty for you. Explain that you need to use it for work :)

--Ian

sumguy231 03-06-2007 10:43 PM

Why do you need administrator rights? PuTTY is a standalone executable, no installation required.

timmeke 03-07-2007 01:25 AM

@nx5000: thanks for the tip on netcat.

@icechong: sumguy231 is right. Just download the .exe's you need from http://www.chiark.greenend.org.uk/~s.../download.html for instance.
But do not get the general installer, as that may need admin rights.

icechong 03-08-2007 01:25 AM

Quote:

Originally Posted by timmeke
@nx5000: thanks for the tip on netcat.

@icechong: sumguy231 is right. Just download the .exe's you need from http://www.chiark.greenend.org.uk/~s.../download.html for instance.
But do not get the general installer, as that may need admin rights.


Got it. Thanks to all of you.


All times are GMT -5. The time now is 07:09 AM.