Home
Programming
Linux
Fun
Articles
Automating SSH Logins with Expect
- You can use TCL/Expect to automate SSH logins to a remote server to execute a command on that server. The following example will SSH into a server and restart apache. #!/usr/bin/expect