![]() |
![]() |
EnderUNIX İpucuArkadaşıma gönder , Ana Sayfa[ Linux ] "Failed to add the host to the list of known hosts (/root/.ssh/known_hosts)" - Ugur Engin - (2012-08-30 14:53:31) [18169] Remote bir ssh sunucuya bağlanılmaya çalışıldığı esnada yukarıdaki şekilde bir hata mesajı alınırsa, client bilgisayar üzerinde aşağıdaki adımlar uygulanararak problem atlatılabilir. [root@enginx ~]# mkdir ~/.ssh [root@enginx ~]# chmod u+rwx ~/.ssh [root@enginx ~]# ls -ld ~/.ssh/ drwx------ 2 root root4096 Aug 30 15:25 root/.ssh/ [root@enginx ~]# cd .ssh/ [root@enginx .ssh]# ls -l total 0 Bu işlemler sonrası örnek bir ssh bağlantısı açarak, ilgili public keylerin known.hosts isimli dosyaya yazılabildiği görülebilir. [root@enginx .ssh]# ssh root@46.20.*.* The authenticity of host '46.20.*.* (46.20.*.*)' can't be established. RSA key fingerprint is 2d:da:02:14:dc:6e:ff:05:c5:38:da:af:04:3d:11:d6. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '46.20.*.*' (RSA) to the list of known hosts. root@46.20.*.*'s password: [root@enginx .ssh]# ls -lh total 4.0K -rw-r--r-- 1 root root 394 Aug 30 15:29 known_hosts [root@enginx .ssh]# more +/46.20 known_hosts 46.20.*.* ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEApFT7WRC14ULgOhgeAU09J3oQRHJDdKd +ItQEIqcWCcn/fsI4keG6fA6TGF6yxpOlDKhYjr2n+05v5p34mSea4M3cRRZCs1vSWW2aiDu0+hGdkAQ n5k55EZKI2CAd5+gq8nFPNYkqM9PscXXDGEFbkIo/+POBF5j2yq5AVic9GszkgsgtEZzzmPfa0RtL3l7 Arkadaşıma gönder , Ana Sayfa |
|