crash.software
Projects
Pull Requests
Issues
Builds
Osmedeus
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
Osmedeus
Files
🤬
Sign In
v4.0.2
ROOT
/
distribute
/
ssh.go
Search
History
429 lines
|
ISO-8859-1
|
9 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
remoteScriptType
remoteShellType
cmdLine
:
remoteScriptType
rawScript
scriptFile
interactiveShell
:
remoteShellType
nonInteractiveShell
Client
client
:
*ssh.Client
DialWithPasswd
(addr, user, passwd string)
:
(*Client, error)
DialWithKeyString
(addr, user, keyContent string)
:
(*Client, error)
DialWithKey
(addr, user, keyfile string)
:
(*Client, error)
DialWithKeyWithPassphrase
(addr, user, keyfile string, passphrase string)
:
(*Client, error)
Dial
(network, addr string, config *ssh.ClientConfig)
:
(*Client, error)
remoteScript
client
:
*ssh.Client
_type
:
remoteScriptType
script
:
*bytes.Buffer
scriptFile
:
string
err
:
error
stdout
:
io.Writer
stderr
:
io.Writer
remoteShell
client
:
*ssh.Client
requestPty
:
bool
terminalConfig
:
*TerminalConfig
stdin
:
io.Reader
stdout
:
io.Writer
stderr
:
io.Writer
TerminalConfig
Term
:
string
Height
:
int
Weight
:
int
Modes
:
ssh.TerminalModes
*CloudRunner
SSHExec
(command string)
:
(string, error)
InitSSHClient
()
:
(*Client, error)
*Client
Close
()
:
error
Cmd
(cmd string)
:
*remoteScript
Script
(script string)
:
*remoteScript
ScriptFile
(fname string)
:
*remoteScript
Terminal
(config *TerminalConfig)
:
*remoteShell
Shell
()
:
*remoteShell
*remoteScript
Run
()
:
error
Output
()
:
([]byte, error)
SmartOutput
()
:
([]byte, error)
Cmd
(cmd string)
:
*remoteScript
SetStdio
(stdout, stderr io.Writer)
:
*remoteScript
runCmd
(cmd string)
:
error
runCmds
()
:
error
runScript
()
:
error
runScriptFile
()
:
error
*remoteShell
SetStdio
(stdin io.Reader, stdout, stderr io.Writer)
:
*remoteShell
Start
()
:
error
All occurrences
Please wait...
Page is in error, reload to recover