Я установил сервер OpenSSH на моей машине с Windows и смог успешно выполнить SSH с Windows Box на мою машину с Linux (и наоборот).
Хотя я не могу настроить ключ аутентификации для того же ... вот шаги, которые я следовал
В Windows - OpenSSH
C:\OpenSSH\bin> ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/Arpit/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/Arpit/.ssh/id_rsa.
Your public key has been saved in /home/Arpit/.ssh/id_rsa.pub.
The key fingerprint is:
b9:0c:33:15:9f:8a:bf:02:cf:80:43:7c:6e:42:07:52 Arpit@Windows-HOST
C:\OpenSSH\bin> scp "C:\Documents and Settings\Arpit\.ssh\id_rsa.pub" Arpit@Linux-HOST:
Пробовал ssh после этих шагов но он спрашивал пароль для подключения
В линуксе
[arpit@Linux-HOST ~]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/arpit/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/arpit/.ssh/id_rsa.
Your public key has been saved in /home/arpit/.ssh/id_rsa.pub.
The key fingerprint is:
e8:ac:43:a5:52:d5:ca:11:ea:2f:ae:b9:b0:cb:ba:8e arpit@Linux-HOST
[arpit@Linux-HOST ~]$ ssh-copy-id -i /home/arpit/.ssh/id_rsa.pub arpit@Windows-HOST
arpit@Windows-HOST's password:
Now try logging into the machine, with "ssh 'arpit@Windows-HOST'", and check in:
.ssh/authorized_keys
to make sure we haven't added extra keys that you weren't expecting.
Все еще не повезло. Кто-нибудь может мне помочь с тем же?