Getting function result from machine without direct access

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??
LVL 1
celticianAsked:
Who is Participating?
 
ozoConnect With a Mentor Commented:
ssh user@machine script.ksh
0
 
celticianAuthor Commented:
Im being asked for password, can i send it as a parameter as well?
0
 
ozoCommented:
No.
But you may be able to set an authentication key
0
 
celticianAuthor Commented:
Ok thanks, ill post that as another question. :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.