Executing commands remotely via ssh

by

You can execute commands on the remote machine via ssh if you want to. This example will read a local file and append it to a file on the remote machine. Note that the stuff between the ” ” is the command executed remotely.


cat localfile.txt | ssh chris@remotehost "cat - >> remotefile.txt"

Tags:

One Response to “Executing commands remotely via ssh”

  1. เว็บแทงบอลออนไลน์ Says:

    Excellent content. Thanks a lot, this really helped. i like your blog. Maybe you will visit my website here เว็บแทงบอลออนไลน์ Thank again.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.