Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

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??
0
celtician
Asked:
celtician
  • 2
  • 2
1 Solution
 
ozoCommented:
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

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now