Update ssh.md

This commit is contained in:
Paul Taylor 2018-05-28 08:44:53 +01:00 committed by GitHub
parent 8185fca039
commit c41d58de2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,4 +17,10 @@ functions:
RPATH=where_to_save
LPATH=file_to_send
ssh $HOST "cat > $RPATH" < $LPATH
read file:
- description: Read strings from text files. Reliability depends on content of files but works well with /etc/passwd
code: ssh -F /etc/passwd localhost
file exists:
- description: Tests whether a file exists.
code: ssh -i /filename localhost
---