Putty won't cache the keys to access a server when run script in hudson

前端 未结 9 1627
無奈伤痛
無奈伤痛 2020-12-05 03:59

I had a simple automation process to write which needed to copy a few files from linux server to windows via SSH. This can be accomplished using putty.

SSH, as part

9条回答
  •  孤街浪徒
    2020-12-05 04:45

    echo y | pscp -i /path/to/key/file user@remote:/tmp/file  .
    echo y | plink -i /path/to/key/file scripts.sh
    

    it will store host key fingureprint to following location at the first time, and will ignore "y" next time

    HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\SshHostKeys
    

提交回复
热议问题