Re: loging in to a LAN computer via ssh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> If you use iptables as firewall, add this rule:

> /sbin/iptables -t nat -A PREROUTING -p tcp -s xxx.yyy.zzz.ttt --dport \
> 10022 -j DNAT --to-destination 192.168.0.10:22

> the instruction -p tcp -s xxx.yyy.zzz.ttt is not necessary, it is only
> if you allow a given machine to log on your gateway.

> You can add in your .ssh/config file:

> Host name-of-machine-behind-gw
>         HostName  name-of-gateway
>         HostKeyAlias name-of-machine-behind-gw
>         Port 10022

> and just type ssh me@name-of-machine-behind-gw


Thanks! That sounds great!

Przemek
-- 
AIKIDO TANREN DOJO  -  Poland - Warsaw - Mokotow - Ursynow - Natolin
info: http://www.tanren.pl/ phone: +48506613147 email: dojo@xxxxxxxxx

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux