diff options
| author | Shulhan <ms@kilabit.info> | 2024-03-22 20:11:57 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-03-22 20:12:34 +0700 |
| commit | 62bf073d3d5b55a7e76cf5d9cebefdc9c00cbcee (patch) | |
| tree | ecd71be835eea9fcadca2d1295c3f7dc9c11b371 /ssh_client.go | |
| parent | 4ec4ca7d83320151bdc1894f0b2a5d31661ad6b0 (diff) | |
| download | awwan-62bf073d3d5b55a7e76cf5d9cebefdc9c00cbcee.tar.xz | |
all: replace module "share" with "pakakeh.go"
The "share" project has been moved to SourceHut with new name
"pakakeh.go".
Diffstat (limited to 'ssh_client.go')
| -rw-r--r-- | ssh_client.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ssh_client.go b/ssh_client.go index 3007df1..dcc9c5e 100644 --- a/ssh_client.go +++ b/ssh_client.go @@ -12,9 +12,9 @@ import ( "path/filepath" "strings" - "github.com/shuLhan/share/lib/ssh" - "github.com/shuLhan/share/lib/ssh/config" - "github.com/shuLhan/share/lib/ssh/sftp" + "git.sr.ht/~shulhan/pakakeh.go/lib/ssh" + "git.sr.ht/~shulhan/pakakeh.go/lib/ssh/sftp" + "git.sr.ht/~shulhan/pakakeh.go/lib/sshconfig" ) // sshClient contains clients for SSH and SFTP (SSH File Transport Protocol @@ -24,7 +24,7 @@ import ( // If the remote server does not support SFTP, it will fallback to use scp // command using SSH connection. type sshClient struct { - section *config.Section + section *sshconfig.Section conn *ssh.Client sftpc *sftp.Client @@ -40,7 +40,7 @@ type sshClient struct { // // Once connection established, the client create new temporary directory on // server at dirTmp for sudoGet or sudoPut operations. -func newSSHClient(req *ExecRequest, section *config.Section) (sshc *sshClient, err error) { +func newSSHClient(req *ExecRequest, section *sshconfig.Section) (sshc *sshClient, err error) { var logp = `newSSHClient` req.mlog.Outf(`--- SSH connection: %s@%s:%s`, |
