Eurotech ZEUS Uživatelský manuál Strana 28

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 72
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 27
Arcom Embedded Linux Technical Manual Secure Shell (SSH)
Port forwarding
SSH has the ability to tunnel TCP/IP connections from the local machine to the remote
host and vice-versa. This is useful to provide a secure wrapper around an insecure
protocol.
For example, to create a secure tunnel from the local machine to a mail server running
remotely on port 25, you could enter the following:
$ ssh –L 2525:localhost:25 [email protected]
localhost refers to the local host from the perspective of the remote host. Anyone
connecting to port 2525 on your local host is therefore forwarded through the SSH
tunnel to port 25 on mail.example.net.
You need not use localhost. For example, the following command enables anyone with
access to your local machine to access mail.example.net, which we assume is secured
behind the example.net firewall:
$ ssh –L 2525:mail.example.net:25 firewall.example.net
You can also forward a port on the remote machine to any machine accessible from
your local machine. For example, to tunnel port 2525 on the remote machine to a mail
server on your local network, enter the following:
$ ssh –R 2525:mail.example.net:25 ael.example.net
Anyone connecting to port 2525 on ael.example.net is forwarded to mail.example.net
on your local network.
Further information about SSH
The preceding sections provide simple examples of what you can achieve using SSH.
Further information about using SSH is on the OpenSSH website, at www.openssh.org
.
© 2006 Arcom Issue G 28
Zobrazit stránku 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 71 72

Komentáře k této Příručce

Žádné komentáře