Executing commands on windows host from unix host

Many a times we may need to execute commands in host#2 from host#1, where in host#1 and host#2 can be windows or unix hosts. In this post I will be providing information on how to run commands from unix host (host#1) which gets executed on host#2 which can be a windows or unix host.

If host#2 is a unix host sshpass command be used on host#1 to execute commands on host#2. sshpass can be downloaded here
If host#2 is a windows host, winexe command can be used to host#1 to execute commands on host#2. Winexe can be downloaded here.

Both sshpass and winexe will be installed in host#1 and nothing needs to be installed in host#2. Commands gets executed on host#2 and any output will be displayed in host#1 which can be used for any further processing.

Advertisements
This entry was posted in General Tech Discussion. Bookmark the permalink.

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