I have install Gentoo on both PC, there are far away.
PC A, ADSL Router, DynDNS Account.
PC B, direct Internet, Static Address.
Configurations for both PCs:
/etc/ssh/ssh_config all default but
Port xxxx
Compression yes
#
http://gentoo-wiki.com/TIP_SSH_Socket
Host *
ControlMaster auto
ControlPath ~/.ssh/socket-%r@%h:%p
/etc/sshd_config all default but
Port xxxx
PermitRootLogin no
#
http://gentoo-wiki.com/TIP_SSH_Reverse_Tunnel
TCPKeepAlive no
ClientAliveInterval 30
ClientAliveCountMax 9999
ssh-keygen -t dsa --> for all User on both Site.
It was wonderful, but B had have a unwished reboot. In this Moment PC does emerge -auvND world
B could establish a Link to A. Normal Internet is good.
ssh -p xxxx
user@something.com
A couldn't establish a Link to B. Normal Internet is good.
ssh -p xxxx user@123.456.789.12
There are only the long Message:
ssh -p xxxx -l -v -v user@123.456.789.12
OpenSSH_5.0p1, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: auto-mux: Trying existing master
debug1: Control socket "/root/.ssh/socket-user@123.456.789.12:xxxx" does not exist
debug1: Connecting to 123.456.789.12 [123.456.789.12] port xxxx.
debug1: connect to address 123.456.789.12 port xxxx: Connection timed out
ssh: connect to host 123.456.789.12 port xxxx: Connection timed out
On both PCs User could login to localhost.
ssh -p xxxx -v -v -l user localhost
On both PCs Root could login to localhost. I have this permitted temporary in the etc/ssh/sshd_config.
ssh -p xxxx -v -v -l root localhost
tcpdump -vv on B display attempt Logins from A to B, but the Line couldn't be established.
The Ports xxxx TCP for SSH are open in the Firewall and ADSL Router on A and in the Firewall on B.
emerge -a sys-auth/pambase sys-libs/pam libtool openssh keychain
revdep-rebuild
I have renamed
/etc/ssh
/root/.ssh
/home/user/.ssh
and make new Configuration, but no Success.
Thanks for Help.
Regards,