LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux 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

Reply
 
Search this Thread
Old 03-06-2007, 10:11 AM   #1
icechong
Member
 
Registered: Oct 2006
Posts: 42

Rep: Reputation: 15
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.
 
Old 03-06-2007, 10:17 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
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?
 
Old 03-06-2007, 10:24 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 53
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!
 
Old 03-06-2007, 10:27 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
@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.
 
Old 03-06-2007, 12:09 PM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 53
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"
 
Old 03-06-2007, 09:04 PM   #6
icechong
Member
 
Registered: Oct 2006
Posts: 42

Original Poster
Rep: Reputation: 15
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.
 
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

Rep: Reputation: 61
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
 
Old 03-06-2007, 11:43 PM   #8
sumguy231
Member
 
Registered: Apr 2004
Location: North America
Distribution: Kubuntu 7.04 - Feisty Fawn
Posts: 296

Rep: Reputation: 30
Why do you need administrator rights? PuTTY is a standalone executable, no installation required.
 
Old 03-07-2007, 02:25 AM   #9
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
@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.
 
Old 03-08-2007, 02:25 AM   #10
icechong
Member
 
Registered: Oct 2006
Posts: 42

Original Poster
Rep: Reputation: 15
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.
 
  


Reply

Tags
ssh, telnet


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:22 PM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration