I have successfully created public private keys to make passwordless ssh connection. I need to make connection with remote server, go to a particular path, and append some input to sample.log file. Currently I am using os.system("ssh xxx@aaa.vvv.com") and then the steps to append the input to sample.log file. But my script stops only aftwr making connection with using os.system("ssh xxx@aaa.vvv.com").
Paramiko Module is best suited for it.
I use it personally to make connections and execute comand from one device to another.
You can find more detailed information of paramiko on https://www.paramiko.org
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.