Another sip of code ?

Reminder - SSH - Send Command Without Login

| Comments

Over the past few days I had to manage a few remote devices, and send commands to them. I was like “I wish I could just send the command without having to login, that would save me a lot of time.”

Well after a google search I found it !

$ ssh <user>@<ip server> '<command>'

It’s so simple I almost feel dummer.

here is an example to reboot a remote device.

$ ssh root@ 'reboot'

it’s almost too simple…

source : SystemsBoy