Write a script to login to remote server

Need to write a script to login to a remote server.  
say the server IP is 145.28.135.125
taazAsked:
Who is Participating?
 
Hugh McCurdyCommented:
This is rather difficult to answer without knowing which program you wish to use.  Choices include rlogin, telnet and ssh.  

The script for rlogin and ssh become trivial if you use alternate authentication.  Alternate authentication can be insecure.  (rlogin and telnet can be insecure, period).

By ssh, I mean ssh2.
0
 
Hugh McCurdyCommented:
I like Arnold's answer.  Should have thought of it myself.  You get to use ssh that way.
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

 
taazAuthor Commented:
i open the putty and connect to the remote server. and now i want to write a script that when i run it, it connects to the server without me opening the putty and enter the ip address (ssh).

Does the script by Arnold is the solution to that?
0
 
taazAuthor Commented:
thanks
0
 
arnoldCommented:
To be clear, the script in the link is not mine.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.