Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Write a script to login to remote server

Posted on 2011-09-30
6
Medium Priority
?
318 Views
Last Modified: 2012-05-12
Need to write a script to login to a remote server.  
say the server IP is 145.28.135.125
0
Comment
Question by:taaz
  • 2
  • 2
  • 2
6 Comments
 
LVL 80

Accepted Solution

by:
arnold earned 2000 total points
ID: 36895278
0
 
LVL 13

Expert Comment

by:Hugh McCurdy
ID: 36895280
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
 
LVL 13

Expert Comment

by:Hugh McCurdy
ID: 36895284
I like Arnold's answer.  Should have thought of it myself.  You get to use ssh that way.
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 

Author Comment

by:taaz
ID: 36895381
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
 

Author Closing Comment

by:taaz
ID: 36895448
thanks
0
 
LVL 80

Expert Comment

by:arnold
ID: 36895612
To be clear, the script in the link is not mine.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month13 days, 7 hours left to enroll

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question