[j-nsp] remote ssh command to an EX series switch

Laurent HENRY Laurent.Henry at ehess.fr
Mon Sep 6 10:04:33 EDT 2010


Hello all,

     I am willing to obtain the output of a simple command (show arp) remotely 
from my linux host to a EX switch.

i can use
%ssh netadmin at router1 'show arp'  from my desktop
Obviously, i need to deal with ssh public keys.

I tried this to from switch to desktop too
%echo "show arp" | /usr/sbin/cli > j.txt; scp j.txt 
x at 192.168.0.152:/home/x/j.txt
with a similar issue.

Is someone know a good doc pointer helping me how to configure ssh keys to 
launch remote command from or to an EX ?

Tank you



More information about the juniper-nsp mailing list