MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / GetRemoteHome

Method GetRemoteHome

cli/pkg/common/sshremote.go:141–144  ·  view source on GitHub ↗

获取远程主机上的当前HOME目录

()

Source from the content-addressed store, hash-verified

139
140// 获取远程主机上的当前HOME目录
141func (sshRemote *SSHRemote) GetRemoteHome() (currentDir string, err error) {
142 currentDir, err = sshRemote.ExeSSHCommand("echo ${HOME}")
143 return currentDir, err
144}
145
146// 获取远程uid,gid
147func (sshRemote *SSHRemote) GetRemoteUserInfo() (Uid string, Gid string) {

Callers 2

InstallSmartideAgentFunction · 0.80

Calls 1

ExeSSHCommandMethod · 0.95

Tested by

no test coverage detected