0
我混帳安裝在我的Windows 7 PC 我已經ssh.exe安裝在爲idrsa的Windows SSH默認位置(GIT安裝)
C:\Program Files (x86)\Git\bin\ssh.exe
這也是我的道路。
以下命令作品和我連接到我的服務器:
ssh -i%USERPROFILE%/.ssh/id_rsa [email protected] -p7345
但是如果我跑
ssh [email protected] -p7345
提示我輸入密碼。我需要這個來成功運行Maven目標。我希望能夠指定一個默認的idrsa位置。
Intrestingly SSH-凱基輸出以下,當我運行它:
C:\Program Files (x86)>ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (//.ssh/id_rsa):
它似乎未能獲得%USERPROFILE%的位置。任何人都可以提出解決方案