Linux:ssh + schtasks 在 Windows 建立排程執行特定工作
在 Linux 下使用命令對 Windows 進行操作,可在 Windows 裝 OpenSSH 伺服器,再從 Linux 用 ssh / sshpass 來下命令,但有些軟體在 Windows 雖有提供命令,卻無法直接由 Linux 來下達,狀況是運行後命令會卡住,在 Windows 下執行就正常 …
在 Linux 下使用命令對 Windows 進行操作,可在 Windows 裝 OpenSSH 伺服器,再從 Linux 用 ssh / sshpass 來下命令,但有些軟體在 Windows 雖有提供命令,卻無法直接由 Linux 來下達,狀況是運行後命令會卡住,在 Windows 下執行就正常 …
一、將使用帳號密碼登入改為以金鑰密碼驗證執行puttygen.exe使用PuTTY Key Generator產生金鑰 $mkdir /home/user/.ssh && vim /home/user/.ssh/authorized_keys將下圖Public key for pas …