Questions tagged [ssh]

Secure Shell - a network protocol for exchanging data throughout secure channel with most common uses of remote command execution (remote shell/console) and file transfer. Use this tag for programs and scripts using the SSH protocol, including the associated SCP and SFTP file-transfer mechanisms.

Filter by
Sorted by
Tagged with
3
votes
1answer
2k views

Execute script on remote host and obtain variables on localhost

This executes a predefined script on a remote host, and somehow retrieve variable values without affecting STDOUT and STDERR. ...
2
votes
2answers
3k views

Uploading a file using Net::SFTP

I have a method to upload a file using the Net::SFTP gem: ...
3
votes
2answers
615 views

Locking a remote file

I am using Java to modify remote files in different machines by ssh. At the same time, only one thread is allowed to modify the file in one machine. I implement the logic like this: ...
1
vote
2answers
835 views

SSH Class with a method for downloading via SCP

I am looking for a code review on this class. I found myself writing this logic a lot, so trying to save myself some time. ...
4
votes
1answer
2k views

Sending an XML file to an SFTP site

I have a console application that basically retrieves XML content, writes to the XML file and sends the file to an SFTP site: ...

1
2