Solved

Write a script to login to remote server

Posted on 2011-09-30
6
307 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 77

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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

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 77

Expert Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

914 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now