Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Internet a sítě => Téma založeno: Zerog 12 Května 2012, 09:22:44
-
Zdravim,
da se nejak vynutit pripojeni pres ssh klice ze strany clienta ?
kdyz zadam ssh zerog@ip zepta se me na password. Existuje na to nejaky prepinac? Nedari se mi to najit a v serveru to zatim vypinat nechci. Uz bych se tam totiz nedostal :-D
Diky
-
A uz jsem to nasel. Je to prepinac i
ssh zerog@ip -i ~/.ssh/id_dsa
ale stejne me to nepomohlo.
Edit:
Nenapada nekoho reseni? Zkousel jsem i vygenerovat ssh-klice znovu. Na serveru mam v configuraci :
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile %h/.ssh/authorized_keys
Tohle je normalni ?
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: /home/zerog/.ssh/id_dsa
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: password
-
Konecne vyreseno. Nakonec chyba na strane serveru v pritup. pravy.
viz
After setting up password-less ssh, I was still asked for my user password. Looking at /var/log/auth.log on the remote machine pointed out the issue:
sshd[4215]: Authentication refused: bad ownership or modes for directory /home/<user>
So, make sure to have it right:
chmod o-w ~/
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
Diky chlapci :-D