Solved

Write a script to login to remote server

Posted on 2011-09-30
6
314 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 500 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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

623 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