Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute ssh command on VIO Server

Status
Not open for further replies.

TSch

Technical User
Jul 12, 2001
557
0
0
DE
Hi Folks,

when I use

Code:
ssh padmin@vioserver "lsmap -all"

it Returns

Code:
rksh: lsmap:  not found.

If I Login to the VIO Server as padmin first and then execute the command, everything is fine.

Is there any way to make it possible to execute commands "remote" without having to Login first ?

Regards,
Thomas
 
hello,
I think you should use iosctl from root for such remote actions (instead of using restricted padmin)

ssh root@vioserver "/usr/ios/cli/ioscli lsmap -all"

you oem_setup_env to root and authorize your ssh key on password and use ssh-agent then on your client side
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top