[英]passwordless ssh login to same linux server
我需要使用ssh到同一服務器的無密碼登錄。 我以前在同一台服務器上完成過此操作,並且一直有效。
cd ~
ssh-keygen -t dsa
cd ~/.ssh/
ssh-copy-id -i id_dsa <user@target-system>
我已經使用了上面顯示的步驟。
我現在正在嘗試相同的方法,並遵循了所有可能的解決方案,但是它不起作用。
在debug
模式下運行ssh時,出現以下錯誤/警告:
debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found
debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found
debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found
有人可以幫忙嗎?
現在,每次我嘗試ssh時,都會提示輸入密碼。
目標主機上$HOME/.ssh
上的權限問題。
驗證是否檢查類似於
sshd[1235]: Authentication refused: bad ownership or modes for directory /home/someuser
出現在目標主機的authlog中(對於Debian / Ubuntu,為/var/log/auth.log
)。
如果是這樣,請以您要登錄的用戶身份在目標主機上執行以下操作
chmod o-w ~/
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.