ssh and io redirection with cmd.exe

3 posts / 0 new
Last post
itefix
Offline
Last seen: 2 weeks 10 hours ago
Joined: 01.05.2008 - 21:33
ssh and io redirection with cmd.exe

Examples for redirecting the stdout of a remotely executed process and input to a locally executed one from the command line.
if the copSSH user's /etc/passed specifies:

bash:
ssh name@host cat filename | more

cmd:
ssh name@host cmd /c type c:\\filename | more

*note the need to escape backslashes with cmd.exe

Hope this is useful to someone...

itefix
Offline
Last seen: 2 weeks 10 hours ago
Joined: 01.05.2008 - 21:33
Re: ssh and io redirection with cmd.exe

The second example should have doubled the backslash in c:\\filename

itefix
Offline
Last seen: 2 weeks 10 hours ago
Joined: 01.05.2008 - 21:33
Re: ssh and io redirection with cmd.exe

The second example should have doubled the backslash in c:\\filename

Release announcements