From 47c9daf4f8ce5ef716558750c9d186fd53e12710 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Mon, 30 Dec 2019 16:12:24 +0800 Subject: [PATCH] update Signed-off-by: Bo-Yi Wu --- main.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index 77fb618..9c25784 100644 --- a/main.go +++ b/main.go @@ -205,6 +205,7 @@ func run(c *cli.Context) error { KeyPath: c.String("key-path"), Username: c.String("user"), Password: c.String("password"), + Passphrase: c.String("ssh-passphrase"), Host: c.StringSlice("host"), Port: c.Int("port"), Timeout: c.Duration("timeout"), @@ -215,13 +216,14 @@ func run(c *cli.Context) error { Debug: c.Bool("debug"), Sync: c.Bool("sync"), Proxy: easyssh.DefaultConfig{ - Key: c.String("proxy.ssh-key"), - KeyPath: c.String("proxy.key-path"), - User: c.String("proxy.username"), - Password: c.String("proxy.password"), - Server: c.String("proxy.host"), - Port: c.String("proxy.port"), - Timeout: c.Duration("proxy.timeout"), + Key: c.String("proxy.ssh-key"), + KeyPath: c.String("proxy.key-path"), + User: c.String("proxy.username"), + Password: c.String("proxy.password"), + Passphrase: c.String("proxy.ssh-passphrase"), + Server: c.String("proxy.host"), + Port: c.String("proxy.port"), + Timeout: c.Duration("proxy.timeout"), }, }, Writer: os.Stdout,