Re: ssh
4 Февраль 2003 10:36, Eugeny Nemo написал:
> Приветствую.
>
> помогите, плз, разобраться.
> сижу в локалке, доступ наружу - только 25-й порт.
> есть сервер, стоящий в интернете (аж в другом городе), с
> установленным sshd. на нём делаю:
> ipchains -A input -s <мой.внешний.ip.адрес>/255.255.255.255 -d
> <внешний.ip.той.машины>/255.255.255.255 25:25 -p 6 -j REDIRECT 22 (по
> моему, так).
>
> у себя:
> [nemo@ekt]$ ssh <адрес> -p 25
> Read from socket failed: Connection reset by peer
>
> в чём я неправ?
Ты пытаешься на удаленной машине вломиться на 25 порт. Попробуй -L
-L port:host:hostport
Specifies that the given port on the local (client) host is to be
forwarded to the given host and port on the remote side. This
works by allocating a socket to listen to port on the local side,
and whenever a connection is made to this port, the connection is
forwarded over the secure channel, and a connection is made to
host port hostport from the remote machine. Port forwardings can
also be specified in the configuration file. Only root can for╜
ward privileged ports. IPv6 addresses can be specified with an
alternative syntax: port/host/hostport
>
> ЗЫЖ кстати, к теме рассылки это относится только тем, что на удалённой
> стороне - woody. =)
Да ssh - он и на SuSE ssh
wbr
--
Sergey N Daniloff <daniloff@mail.peter.uvd.gov.spb.ru>
vc icguvd
Reply to:
- References:
- ssh
- From: Eugeny Nemo <nemo@ekt.mb.ru>