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"

Advertisements

Tags:

3 Responses 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.

  2. zoomgroups.com Says:

    This is my first time pay a quick visit at here and i am actually impressed
    to read all at single place.

  3. pounds Says:

    You are so awesome! I don’t believe I’ve read through something like this before.
    So nice to discover skmeone with original thoughts on this topic.
    Seriously.. thanks for starting this up. This site is something
    that is required on the web, someone with a little originality!

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 )

Google+ photo

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

Connecting to %s


%d bloggers like this: