Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Write a script to login to remote server

Posted on 2011-09-30
6
Medium Priority
?
315 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 79

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
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 

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 79

Expert Comment

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

Featured Post

What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

Question has a verified solution.

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

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…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

661 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