1.3.3 • Published 5 years agoCLI
@troubkit/ssh-server
Licence
MIT
Version
1.3.3
Deps
16
Size
144 kB
Vulns
0
Weekly
0
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)
ssh-server
Usage
$ npm install -g @troubkit/ssh-server
$ ssh-server COMMAND
running command...
$ ssh-server (-v|--version|version)
@troubkit/ssh-server/1.3.3 darwin-x64 node-v10.23.0
$ ssh-server --help [COMMAND]
USAGE
$ ssh-server COMMAND
...
Commands
ssh-server copy [SOURCE] [...] [TARGET]ssh-server port:close SERVER REMOTEPORT:LOCALPORTssh-server port:list SERVER REMOTEPORT:LOCALPORTssh-server port:open SERVER REMOTEPORT:LOCALPORTssh-server shell [SERVER]
ssh-server copy [SOURCE] [...] [TARGET]
open server shell
USAGE
$ ssh-server copy [SOURCE] [...] [TARGET]
OPTIONS
-H, --host=host host of the server
-P, --port=port port of the ssh server
-h, --help show CLI help
-i, --identityFile=identityFile path to ssh identity file to logon server
-p, --password=password password to logon server
-q, --quiet
-r, --recursive recursive copy
-u, --username=username username used to logon server
--home=home home path on the server
ALIASES
$ ssh-server cp
EXAMPLE
$ ssh-server copy -r server:~/workspace ~/
See code: src/commands/copy.ts
ssh-server port:close SERVER REMOTEPORT:LOCALPORT
close ssh local port forwarding
USAGE
$ ssh-server port:close SERVER REMOTEPORT:LOCALPORT
ARGUMENTS
SERVER name of server predefined in config file
REMOTEPORT:LOCALPORT port forward pattern
OPTIONS
-H, --host=host host of the server
-P, --port=port port of the ssh server
-h, --help show CLI help
-i, --identityFile=identityFile path to ssh identity file to logon server
-p, --password=password password to logon server
-q, --quiet
-r, --recursive recursive copy
-u, --username=username username used to logon server
--home=home home path on the server
EXAMPLE
$ ssh-server port:close remotePort:localPort ...
See code: src/commands/port/close.ts
ssh-server port:list SERVER REMOTEPORT:LOCALPORT
close ssh local port forwarding
USAGE
$ ssh-server port:list SERVER REMOTEPORT:LOCALPORT
ARGUMENTS
SERVER name of server predefined in config file
REMOTEPORT:LOCALPORT port forward pattern
OPTIONS
-H, --host=host host of the server
-P, --port=port port of the ssh server
-h, --help show CLI help
-i, --identityFile=identityFile path to ssh identity file to logon server
-p, --password=password password to logon server
-q, --quiet
-r, --recursive recursive copy
-u, --username=username username used to logon server
--home=home home path on the server
EXAMPLE
$ ssh-server port:close remotePort:localPort ...
See code: src/commands/port/list.ts
ssh-server port:open SERVER REMOTEPORT:LOCALPORT
open ssh local port forwarding
USAGE
$ ssh-server port:open SERVER REMOTEPORT:LOCALPORT
ARGUMENTS
SERVER name of server predefined in config file
REMOTEPORT:LOCALPORT port forward pattern
OPTIONS
-H, --host=host host of the server
-P, --port=port port of the ssh server
-h, --help show CLI help
-i, --identityFile=identityFile path to ssh identity file to logon server
-p, --password=password password to logon server
-q, --quiet
-r, --recursive recursive copy
-u, --username=username username used to logon server
--home=home home path on the server
EXAMPLE
$ ssh-server port:open localPort:remotePort ...
See code: src/commands/port/open.ts
ssh-server shell [SERVER]
open server shell
USAGE
$ ssh-server shell [SERVER]
ARGUMENTS
SERVER name of server predefined in config file
OPTIONS
-H, --host=host host of the server
-P, --port=port port of the ssh server
-h, --help show CLI help
-i, --identityFile=identityFile path to ssh identity file to logon server
-p, --password=password password to logon server
-q, --quiet
-r, --recursive recursive copy
-u, --username=username username used to logon server
--home=home home path on the server
ALIASES
$ ssh-server sh
EXAMPLE
$ ssh-server shell [serverName]
See code: src/commands/shell.ts