KernelCoffee

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 !

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

It’s so simple I almost feel dummer.

here is an example to reboot a remote device.

1
$ ssh root@192.168.0.42 'reboot'

it’s almost too simple…

source : SystemsBoy

Comments