Solved

Getting function result from machine without direct access

Posted on 2015-01-11
4
199 Views
Last Modified: 2015-01-11
I use to access everyday two unix machines, lets call it machine1 and machine2

I can access machine1 directly from my location, however if i want to access machine2, i first need to access machine1 and launch the next command ssh user@machine2

there is some script in that machine, script.ksh

I would like to execute that script in machine2 from machine1. how can i call it??
0
Comment
Question by:celtician
[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
4 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
ID: 40543676
ssh user@machine script.ksh
0
 

Author Comment

by:celtician
ID: 40543681
Im being asked for password, can i send it as a parameter as well?
0
 
LVL 84

Expert Comment

by:ozo
ID: 40543686
No.
But you may be able to set an authentication key
0
 

Author Comment

by:celtician
ID: 40543689
Ok thanks, ill post that as another question. :)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
NotAlone Challenge 20 88
wordappend challenge 8 222
what is the difference between "sudo su" and "su - root" 6 137
JQuery serialize and unserialize 8 186
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.:
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.

756 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