Mam opóźnienie 10-15 sekund, gdy SSHing trafia na zdalny serwer /etc/ssh/ssh_config ma następujące opcje i nic więcej.
GSSAPIAuthentication yes
ForwardX11Trusted yes
Oto wyjścia debugowania z -vvv opcja.
...
expecting SSH2_MSG_NEWKEYS
set_newkeys: mode 0
SSH2_MSG_NEWKEYS received
Roaming not allowed by server
SSH2_MSG_SERVICE_REQUEST sent
service_accept: ssh-userauth
SSH2_MSG_SERVICE_ACCEPT received
key: /Users/username/.ssh/id_rsa (0x0),
key: /Users/username/.ssh/id_dsa (0x0),
---> DELAY HERE <---
Authentications that can continue: publickey,password
start over, passed a different list publickey,password
preferred publickey,keyboard-interactive,password
authmethod_lookup publickey
remaining preferred: keyboard-interactive,password
...
Widziałem posty, w których ludzie sugerują ustawienia UseDNS no i / lub GSSAPIAuthentication no, ale wygląda na to, że szuka klucza z dzienników. Próbowałem wymusić użycie passowrd ( -o PubkeyAuthentication=no ) bez powodzenia.
Dowolny pomysł?