URN Logo
UNIX Resources » Linux » Linux Forum » Linux Security » Page.1 » telnet to ssh (port 22)
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
telnet to ssh (port 22)
Subject: telnet to ssh (port 22)
Author: Kevin the Drummer    Posted: 2006-01-26 15:11:14    Length: 971 byte(s)
[Original] [Print] [Top]
I'm trying to test a new network configuration, and exposing my ssh port
to the Internet.  I'm having a friend of my test both smtp and ssh from
his host.  He can telnet to my smtp port just fine, but my ssh port
disconnects on him, like so:

[root@friendshost:/usr/u/friend:1753]$ telnet 123.123.123.12 22
Trying 123.123.123.12...
Connected to 123.123.123.12.
Escape character is '^]'.
Connection closed by foreign host.

I think this is the right thing for ssh to do when contacted by telnet.
My ssh doesn't have any knowledge of the other host's keys.

Your thoughts?

Thanks....


--
PLEASE post a SUMMARY of the answer(s) to your question(s)!
Show Windows & Gates to the exit door.
Unless otherwise noted, the statements herein reflect my personal
opinions and not those of any organization with which I may be affiliated.

[Original] [Print] [Top]
Subject: telnet to ssh (port 22)
Author: Ian Kilgore    Posted: 2006-01-26 22:22:02    Length: 1,472 byte(s)
[Original] [Print] [Top]
Kevin the Drummer wrote:
QUOTE
I'm trying to test a new network configuration, and exposing my ssh port
to the Internet.  I'm having a friend of my test both smtp and ssh from
his host.  He can telnet to my smtp port just fine, but my ssh port
disconnects on him, like so:

root@friendshost:/usr/u/friend:1753]$ telnet 123.123.123.12 22
Trying 123.123.123.12...
Connected to 123.123.123.12.
Escape character is '^]'.
Connection closed by foreign host.

I think this is the right thing for ssh to do when contacted by telnet.
My ssh doesn't have any knowledge of the other host's keys.

Your thoughts?

Thanks....



 From outside:

ian@externalhost:~$ telnet my.host.name 2222
 

Trying XX.XX.XX.XX...
Connected to my.host.name.
Escape character is '^]'.
SSH-2.0-OpenSSH_4.2p1 Debian-5

 From inside:

ian@internalhost:~$ telnet my.host.name 22
Trying 192.168.1.14...
Connected to my.host.name.
Escape character is '^]'.
SSH-2.0-OpenSSH_4.2p1 Debian-5

(port 2222 external is forwarded to port 22).
--
echo izn@pwlvkqrw.nwv|tr zwvq aeto

[Original] [Print] [Top]
Subject: telnet to ssh (port 22)
Author: Ertugrul Soeylemez    Posted: 2006-01-27 02:09:17    Length: 1,070 byte(s)
[Original] [Print] [Top]
nobody@tek.com (Kevin the Drummer) (06-01-26 20:11:14):

QUOTE
I'm trying to test a new network configuration, and exposing my ssh
port to the Internet.  I'm having a friend of my test both smtp and
ssh from his host.  He can telnet to my smtp port just fine, but my
ssh port disconnects on him, like so:

root@friendshost:/usr/u/friend:1753]$ telnet 123.123.123.12 22
Trying 123.123.123.12...
Connected to 123.123.123.12.
Escape character is '^]'.
Connection closed by foreign host.

I think this is the right thing for ssh to do when contacted by
telnet.  My ssh doesn't have any knowledge of the other host's keys.

Your thoughts?

SSH is not a Telnet protocol.  As such, you will never have success
using Telnet for an SSH service.

Regards.

[Original] [Print] [Top]
Subject: telnet to ssh (port 22)
Author: Ian Kilgore    Posted: 2006-01-27 02:36:03    Length: 764 byte(s)
[Original] [Print] [Top]
Ertugrul Soeylemez wrote:
QUOTE

SSH is not a Telnet protocol.  As such, you will never have success
using Telnet for an SSH service.

Regards.

However, you should at least be able to get the header-thing (example.
'SSH-2.0-OpenSSH_4.2p1 Debian-5'), rather than having the connection
terminate immediately.  I think OP was using telnet just to verify the
remote machine could get to ssh, not as an attempt to log in to an sshd
using a telnet client.
--
echo izn@pwlvkqrw.nwv|tr zwvq aeto

[Original] [Print] [Top]
Subject: telnet to ssh (port 22)
Author: Ken K    Posted: 2006-01-27 08:59:30    Length: 1,228 byte(s)
[Original] [Print] [Top]
Ertugrul Soeylemez wrote:

QUOTE
nobody@tek.com (Kevin the Drummer) (06-01-26 20:11:14):

I'm trying to test a new network configuration, and exposing my ssh
port to the Internet.  I'm having a friend of my test both smtp and
ssh from his host.  He can telnet to my smtp port just fine, but my
ssh port disconnects on him, like so:

root@friendshost:/usr/u/friend:1753]$ telnet 123.123.123.12 22
Trying 123.123.123.12...
Connected to 123.123.123.12.
Escape character is '^]'.
Connection closed by foreign host.

I think this is the right thing for ssh to do when contacted by
telnet.  My ssh doesn't have any knowledge of the other host's keys.

Your thoughts?

SSH is not a Telnet protocol.  As such, you will never have success
using Telnet for an SSH service.

Regards.

If you read closer, you will find that he is using telnet as a debugging
tool and not a connection tool.

[Original] [Print] [Top]
Subject: telnet to ssh (port 22)
Author: Kevin the Drummer    Posted: 2006-01-27 14:07:01    Length: 944 byte(s)
[Original] [Print] [Top]
Ian Kilgore [invalid@address.see.sig] wrote:
QUOTE
However, you should at least be able to get the header-thing (example.
'SSH-2.0-OpenSSH_4.2p1 Debian-5'), rather than having the connection
terminate immediately.  I think OP was using telnet just to verify the
remote machine could get to ssh, not as an attempt to log in to an sshd
using a telnet client.

I am OP, and you are right about what I was trying to do.

Thx...

--
PLEASE post a SUMMARY of the answer(s) to your question(s)!
Show Windows & Gates to the exit door.
Unless otherwise noted, the statements herein reflect my personal
opinions and not those of any organization with which I may be affiliated.

[Original] [Print] [Top]
Subject: telnet to ssh (port 22)
Author: Carlos Moreno    Posted: 2006-01-27 17:40:46    Length: 1,762 byte(s)
[Original] [Print] [Top]
QUOTE
SSH is not a Telnet protocol.  As such, you will never have success
using Telnet for an SSH service.

telnet (the application) is a *universal tcp client*, and as such,
it can succesfully establish a "raw" connection to any server, any
service (provided that it is tcp-based).

Whether or not the user is able to transmit the right data and
interpret the incoming data for the connection to be maintained,
that's a different story.

But surely, you can run:   telnet www.somehost.com 80

And then, at telnet prompt, type:

GET / HTTP/1.1
Host: www.somehost.com
Connection: close

And at the time you hit enter twice, you'll receive the index.html
document from the given host (and then the connection will be closed
by the server).

This is a result of the HTTP protocol being extremely simple (at
least for simple requests) -- simple enough that you can easily
manage to type the correct commands without any timing, encryption,
or other weird constraints.

As others have pointed out, the OP should at least expect the
"welcome" message that an SSH server transmits upon accepting
the connection.

For the OP:  maybe you should take a closer look at the sshd
config file -- there seem to be restrictions that are disallowing
the connection (perhaps number of connections, or acceptable
IPs for incoming connections, etc.).

HTH,

Carlos
--

[Original] [Print] [Top]
Subject: telnet to ssh (port 22)
Author: Rick Moen    Posted: 2006-01-27 17:58:37    Length: 389 byte(s)
[Original] [Print] [Top]
Carlos Moreno [moreno_at_mochima_dot_com@mailinator.com] wrote:

QUOTE
telnet (the application) is a *universal tcp client*

[plug]
Almost as good as netcat.
[/plug]

[Original] [Print] [Top]
Subject: telnet to ssh (port 22)
Author: ynotssor    Posted: 2006-01-27 18:50:49    Length: 837 byte(s)
[Original] [Print] [Top]
In news:D3kCf.52137$0h.9882@tornado.southeast.rr.com,
Ian Kilgore [invalid@address.see.sig] wrote:

QUOTE
SSH is not a Telnet protocol.  As such, you will never have success

However, you should at least be able to get the header-thing (example.
'SSH-2.0-OpenSSH_4.2p1 Debian-5'), rather than having the connection
terminate immediately.  I think OP was using telnet just to verify the
remote machine could get to ssh, not as an attempt to log in to an sshd
using a telnet client.

He would have gotten a "protocol mismatch" error had he attempted to
establish a login.

[Original] [Print] [Top]
Subject: telnet to ssh (port 22)
Author: Ertugrul Soeylemez    Posted: 2006-01-27 22:34:04    Length: 1,363 byte(s)
[Original] [Print] [Top]
Carlos Moreno [moreno_at_mochima_dot_com@mailinator.com] (06-01-27 17:40:46):

QUOTE
SSH is not a Telnet protocol.  As such, you will never have success
using Telnet for an SSH service.

telnet (the application) is a *universal tcp client*, and as such, it
can succesfully establish a "raw" connection to any server, any
service (provided that it is tcp-based).

No, it is not.  Telnet is a terminal protocol, hence it has a few
non-raw features like Telnet negotiation and terminal escape codes,
which get handled by the client -- and yes, all Telnet clients _must_
handle them.  In fact, theoretically it may even be a security risk to
use Telnet to do that.  Some Telnet clients (or the terminals they run
in) include escape codes, with which you can change keyboard
assignments, or similar.

Better use Netcat for this.  There are no negotiation codes, with which
a hostile server could gain login informations.  The terminal escapes
can be gotten around by piping the output through 'cat -v' (if even
desired).

Regards.

[Original] [Print] [Top]
Subject: telnet to ssh (port 22)
Author: Ertugrul Soeylemez    Posted: 2006-01-27 22:35:11    Length: 919 byte(s)
[Original] [Print] [Top]
"ynotssor" [ynotssor@example.net] (06-01-27 15:50:49):

QUOTE
SSH is not a Telnet protocol.  As such, you will never have success

However, you should at least be able to get the header-thing
(example.  'SSH-2.0-OpenSSH_4.2p1 Debian-5'), rather than having the
connection terminate immediately.  I think OP was using telnet just
to verify the remote machine could get to ssh, not as an attempt to
log in to an sshd using a telnet client.

He would have gotten a "protocol mismatch" error had he attempted to
establish a login.

.... had he even attempted to type a few characters.  But I guess you
meant that.

Regards.

[Original] [Print] [Top]
Subject: telnet to ssh (port 22)
Author: Ertugrul Soeylemez    Posted: 2006-01-27 22:36:40    Length: 608 byte(s)
[Original] [Print] [Top]
Ken K [kkauffman@nospam.headfog.com] (06-01-27 08:59:30):

QUOTE
SSH is not a Telnet protocol.  As such, you will never have success
using Telnet for an SSH service.

If you read closer, you will find that he is using telnet as a
debugging tool and not a connection tool.

He shouldn't do so.  Netcat is the debugging tool to use in this case.

Regards.

[Original] [Print] [Top]
Subject: telnet to ssh (port 22)
Author: Ken K    Posted: 2006-01-27 22:41:46    Length: 781 byte(s)
[Original] [Print] [Top]
Ertugrul Soeylemez wrote:

QUOTE
Ken K [kkauffman@nospam.headfog.com] (06-01-27 08:59:30):

SSH is not a Telnet protocol.  As such, you will never have success
using Telnet for an SSH service.

If you read closer, you will find that he is using telnet as a
debugging tool and not a connection tool.

He shouldn't do so.  Netcat is the debugging tool to use in this case.

Regards.

Perhaps, but your opinion about which tool to use really was not what he was
asking for, if you read the original post.

[Original] [Print] [Top]
Subject: telnet to ssh (port 22)
Author: Alan Frame    Posted: 2006-02-02 05:45:15    Length: 1,110 byte(s)
[Original] [Print] [Top]
Carlos Moreno [moreno_at_mochima_dot_com@mailinator.com] wrote:

QUOTE
SSH is not a Telnet protocol.  As such, you will never have success
using Telnet for an SSH service.

telnet (the application) is a *universal tcp client*, and as such,
it can succesfully establish a "raw" connection to any server, any
service (provided that it is tcp-based).

Whether or not the user is able to transmit the right data and
interpret the incoming data for the connection to be maintained,
that's a different story.

Hehehe.

"Sure, Bob, you /can/ telnet to port 22, but as we use DSA & Blowfish,
you've gotta be *real good* at mental arithmetic for it to work"

rgds, Alan
--
99 Ducati 748BP, 95 Ducati 600SS, 81 Guzzi Monza, 74 MV Agusta 350
"Ride to Work, Work to Ride" SI# 7.067 DoD#1930 PGP Key 0xBDED56C5

[Original] [Print] [Top]
« Previous thread
Using "screen" to monitor user activity
Linux Security
Page. 1
Next thread »
vsftpd and acls
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 13:09:53, cost 0.39698886871338 ms.