well i am trying to set that reverse ssh tunnel for couple of days w/o succes
first iv tried setup passwordles login i did change sshd config on #defined #REMOTE_MACH#(read above )
@@@@@@@@@@@@@@@@@@@@@@@@@@ SSHD CONFIG (part) @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Port 22
Protocol 2
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key
# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 768
# Logging
# obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO
# Authentication:
LoginGraceTime 1m
PermitRootLogin no
#StrictModes yes
MaxAuthTries 2
#RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
THEN i did setup cronjob with command ssh -R 10001:localhost:22 user@OPEN_MACH
where i did also generated public/private dsa key and cop it to #.ssh/authorized_keys#OPEN_MACH
now when i execute bash3.0#ssh -p 10001 remote@machine -v
i get this:
OpenSSH_4.2p1, OpenSSL 0.9.7g 11 Apr 2005
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: Connecting to xx.xxx.xx.xx [xx.xxx.xx.xx] port 10001.
and it timesout
debug1 tells me that ssh reading ssh config instead of sshd config is that right?
as long as i am now getting littel confused about it i would appriciate any suggestions
in ssh config i do not see any dsa authorization option etc...
i did not check yet wheter passwordless is working i will check that ASAP
but i dont even see any ssh faillogs in /var/log/messages from REMOTE MACHINE
i am 100% sure the ssh is working i connected from both using password authentication
thanx for advice