哈哈,可以直接send command 入Linux Box 了

玩了整整二年的Server-Client,終於可以做到在Click Windows Icon 直接run linux 的程式。

事原我有一個自製的網站,每次我更新個網站的時候,便會ssh 入去run 個plucker 程式將個網站抓下來以便我可以在Palm 上看。每次都要ssh 入去非常之不便,終於找到一個方法,用cygwin 的ssh client,可以用key authentication 方法入去server send command 。

# /path/to/ssh.exe user@server \'command\'

而將上面的command 打入一個捷徑裏即可。或者加入個batch file 也可以。

不過記得要設定好條key

Comments

Popular Posts