2011-08-14 128 views

回答

1

我在沒有使用Cygwin的情況下發現它自己 - 我堅持安裝/重新安裝它。

答案是使用PlinkPuTTY

rem Note 
rem ---- 
rem 01 Update `plink` to point to `plink.exe` on `your PC` 
rem 02 Update `pkey` to point to `private key` of `remote server` 
rem (the end) 

set plink="Path\To\PuTTY\plink.exe" 
set user=<your user> 
set server=<remote server> 
set pkey="Path\To\YourPrivateSSHKey.ppk" 
set pass=<your pass> 

set run=%plink% -v -pw %pass% -i %pkey% %user%@%server% 

rem sample run command 
set cmd=svn update /var/www/MyWeb 

%run% %cmd% 
rem (the end) 

希望幫助

0

安裝Cygwin並使用其shell和ssh客戶端。

+0

請給使用Cygwin和'ssh'從那裏更多的細節。謝謝! –

+0

[Cygwin](http://www.google.com/search?btnG=Google+Search&q=cygwin)。 –

+0

我知道如何谷歌...希望你更渴望幫助我們。事實上,我嘗試過Cygwin,但沒有調用'ssh'。任何想法的馬克霍姆? –