ssh
SSH client: connect, exec, tunnel, key auth.
Load with: use ssh
Quick example
use ssh
result = sshcn("value", 8080, "value")
prn(result)
Functions
Functions
sshcn(host, port, opts)
Performs the operation. Takes host, port, opts.
sshpw(s, user, pass)
Performs the operation. Takes s, user, pass.
sshky(s, user, key_path)
Performs the operation. Takes s, user, key_path.
sshag(s, user)
Performs the operation. Takes s, user.
sshex(s, cmd)
Executes. Takes s, cmd.
sshsh(s)
Performs the operation. Takes s.
sshsc(s, data)
Performs the operation. Takes s, data.
sshrc(s, sz)
Performs the operation. Takes s, sz.
sshsf(s)
Performs the operation. Takes s.
sshgt(sf, remote, local)
Performs the operation. Takes sf, remote, local.
sshpt(sf, local, remote)
Performs the operation. Takes sf, local, remote.
sshtl(s, lport, rhost, rport)
Performs the operation. Takes s, lport, rhost, rport.
sshrt(s, rport, lhost, lport)
Performs the operation. Takes s, rport, lhost, lport.
sshcl(s)
Closes or clears. Takes s.
sshfp(host, port)
Performs the operation. Takes host, port.
Module aliases
These are the public-facing names you call with use ssh:
ssh.conn(h, p, o)ssh.pw(s, u, p)ssh.key(s, u, k)ssh.exec(s, c)ssh.shel(s)ssh.sftp(s)ssh.get(sf, r, l)ssh.put(sf, l, r)ssh.tun(s, lp, rh, rp)ssh.cls(s)ssh.fp(h, p)
Notes
- SSH client - connect, exec, SCP.