LinuxQuestions.org
Have you listened to LQ Radio?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 03-06-2007, 10:11 AM   #1
icechong
Member
 
Registered: Oct 2006
Posts: 42
Thanked: 0
telnet to port 22


[Log in to get rid of this advertisement]
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.
icechong is offline  
Tag This Post ,
Reply With Quote
Old 03-06-2007, 10:17 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,363
Thanked: 1
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?
timmeke is offline     Reply With Quote
Old 03-06-2007, 10:24 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,313
Thanked: 3
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!
nx5000 is offline     Reply With Quote
Old 03-06-2007, 10:27 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,363
Thanked: 1
@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.
timmeke is offline     Reply With Quote
Old 03-06-2007, 12:09 PM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,313
Thanked: 3
Yes, but telnet has its additions, like sequence controls and other stuffs I can't remember
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"
nx5000 is offline     Reply With Quote
Old 03-06-2007, 09:04 PM   #6
icechong
Member
 
Registered: Oct 2006
Posts: 42
Thanked: 0

Original Poster
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.
icechong is offline     Reply With Quote
Old 03-06-2007, 09:52 PM   #7
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Thanked: 4
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
IBall is offline     Reply With Quote
Old 03-06-2007, 11:43 PM   #8
sumguy231
Member
 
Registered: Apr 2004
Location: North America
Distribution: Kubuntu 7.04 - Feisty Fawn
Posts: 296
Thanked: 0
Why do you need administrator rights? PuTTY is a standalone executable, no installation required.
sumguy231 is offline     Reply With Quote
Old 03-07-2007, 02:25 AM   #9
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,363
Thanked: 1
@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.
timmeke is offline     Reply With Quote
Old 03-08-2007, 02:25 AM   #10
icechong
Member
 
Registered: Oct 2006
Posts: 42
Thanked: 0

Original Poster
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.
icechong is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PLESK [Solution] Change port to 23 (telnet) instead of default port 8443 x5452 Linux - Software 6 05-10-2009 06:58 AM
cannot telnet port 25 varun_saa Mandriva 2 12-31-2006 12:25 AM
telnet to different port kenhrl Linux - Networking 3 10-29-2004 05:15 PM
telnet to port 80 davee Linux - Networking 5 08-06-2003 04:09 PM
Can't telnet to port 25 scooby_scrappy Linux - Networking 1 05-15-2002 03:28 AM


All times are GMT -5. The time now is 04:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration