aboutsummaryrefslogtreecommitdiff
path: root/ssh_client.go
diff options
context:
space:
mode:
Diffstat (limited to 'ssh_client.go')
-rw-r--r--ssh_client.go10
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`,