На 1-й машине запущен sshd
Port 56320
AllowUsers user11123
AddressFamily inet
#ListenAddress 127.0.0.1
IgnoreRhosts yes
UseDNS no
TCPKeepAlive yes
Compression no
Subsystem sftp /usr/lib/ssh/sftp-server
KexAlgorithms diffie-hellman-group18-sha512
RekeyLimit 256M
Ciphers chacha20-poly1305@openssh.com
MACs hmac-sha2-512-etm@openssh.com
PubkeyAuthentication yes
PubkeyAcceptedKeyTypes ssh-rsa
FingerprintHash sha256
LoginGraceTime 30
MaxAuthTries 3
MaxSessions 1
MaxStartups 1
HostbasedAuthentication no
PasswordAuthentication no
ChallengeResponseAuthentication no
KerberosAuthentication no
AuthorizedKeysFile /home/user11123/.ssh/authorized_keys
PermitRootLogin no
PrintMotd no
PrintLastLog yes
ClientAliveInterval 30
ClientAliveCountMax 5
SyslogFacility AUTH
LogLevel INFO
и tor со следующим дополнением к стандартному конфигу :
HiddenServiceDir /var/lib/tor/ssh/
HiddenServicePort 56320 127.0.0.1:56320
iptables на время эксперимента отключается. На второй машине запускается tor и
ssh nb
host nb
User user11123
Hostname __скопированный_с_сервера_адрес__.onion
Port 56320
VerifyHostKeyDNS no
ProxyCommand ncat -vvv --proxy 127.0.0.1:9050 --proxy-type socks5 %h %p
KexAlgorithms diffie-hellman-group18-sha512
Ciphers chacha20-poly1305@openssh.com
MACs hmac-sha2-512-etm@openssh.com
PubkeyAcceptedKeyTypes ssh-rsa
HostKeyAlgorithms ssh-rsa
HostbasedAuthentication yes
HostbasedAcceptedKeyTypes ssh-rsa
PasswordAuthentication no
CheckHostIP no
KeepAlive yes
Результат этой команды:
Ncat: Version 7.70 ( https://nmap.org/ncat )
NCAT DEBUG: Using system default trusted CA certificates and those in /usr/share/ncat/ca-bundle.crt.
Ncat: Connected to proxy 127.0.0.1:9050
Ncat: No authentication needed.
Ncat: Error: Host unreachable.
kex_exchange_identification: Connection closed by remote host
tor.log на стороне клиента :
Close 1 streams for service [scrubbed].onion for reason resolve failed. Fetch status: No more HSDir available to query.
Подскажите, друзья, почему так ?