Execute commands over ssh.
ssh host-or-session cmd? & options
cmd specifies a command to exec. If no cmd is given, a shell is started and input is taken from :in.
Options are
:in specifies input to the remote shell. A string or a stream.
:out specify :bytes or a string with an encoding specification.
:return-map when followed by boolean true, sh returns a map of
:exit => sub-process's exit code
:out => sub-process's stdout (as byte[] or String)
:err => sub-process's stderr (as byte[] or String)
when not given or followed by false, ssh returns a vector
of the remote shell's stdout followed by its stderr
:username username to use for authentication
:password password to use for authentication
:port port to use if no session specified
Comments top
No comments for ssh. Log in to add a comment.