c - How to auto login ssh server and run some command to modify a file -
Here are the limitations:
- No public key file has been uploaded to the server ( Because it can be run on different target machines), it is just for an automatic test program, so security is not a concern.
- This is the background to run programs automatically, so there is no user input.
- I do not want to use the "expectation" that the user needs to install.
- I know the root user's password.
So I wonder if I can easily use light hope tools or a SST library to do this work.
libssh C can help for the project. Using Perl, there is a module that can be used: Net :: SSH (I use it for +/- for the same purposes)
Comments
Post a Comment