It's under your control.

[Ubuntu] SSH 접속이 느릴 때 본문

Works/Linux

[Ubuntu] SSH 접속이 느릴 때

H4ru 2013. 5. 18. 21:20



Ubuntu에서 ssh를 사용해 원격 컴퓨터에 접속할 때 상당히 오래 기다려야 하는 경우가 있다.

-v 옵션을 사용하면 디버깅 메시지를 볼 수 있는데, 붉은색으로 표시한 부분에서 상당히 지연됨을 알 수 있었다.

 

$ ssh xx.xxxx.com -v

.............

debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure.  Minor code may provide more information
Credentials cache file '/tmp/krb5cc_1000' not found

debug1: Unspecified GSS failure.  Minor code may provide more information
Credentials cache file '/tmp/krb5cc_1000' not found

debug1: Unspecified GSS failure.  Minor code may provide more information


debug1: Next authentication method: publickey
debug1: Trying private key: /home/cherrykyun/.ssh/identity
debug1: Trying private key: /home/cherrykyun/.ssh/id_rsa
debug1: Trying private key: /home/cherrykyun/.ssh/id_dsa
debug1: Next authentication method: password

 
/etc/ssh/ssh_config 파일에서 "GSSAPIAuthentication no" 부분을 찾아 주석을 제거하면 해결된다.

............
#   ForwardAgent no
#   ForwardX11 no
#   ForwardX11Trusted yes
#   RhostsRSAAuthentication no
#   RSAAuthentication yes
#   PasswordAuthentication yes
#   HostbasedAuthentication no
GSSAPIAuthentication no
#   GSSAPIDelegateCredentials no
#   GSSAPIKeyExchange no