@@ -78,10 +78,10 @@ export class SSHAgent extends AgentBase implements AgentWithInitialize {
78
78
const sshConnectConfig : ConnectConfig = {
79
79
readyTimeout : 20000 ,
80
80
keepaliveInterval : 20000 ,
81
- host : this . url . hostname ,
81
+ host : decodeURIComponent ( this . url . hostname ) ,
82
82
port : + this . url . port || 22 ,
83
- username : this . url . username || undefined ,
84
- password : this . url . password || undefined ,
83
+ username : decodeURIComponent ( this . url . username ) || undefined ,
84
+ password : decodeURIComponent ( this . url . password ) || undefined ,
85
85
privateKey : this . proxyOptions . sshOptions ?. identityKeyFile
86
86
? await fs . readFile ( this . proxyOptions . sshOptions . identityKeyFile )
87
87
: undefined ,
@@ -92,7 +92,7 @@ export class SSHAgent extends AgentBase implements AgentWithInitialize {
92
92
this . logger . emit ( 'ssh:establishing-conection' , {
93
93
host : sshConnectConfig . host ,
94
94
port : sshConnectConfig . port ,
95
- password : ! ! sshConnectConfig . passphrase ,
95
+ password : ! ! sshConnectConfig . password ,
96
96
privateKey : ! ! sshConnectConfig . privateKey ,
97
97
passphrase : ! ! sshConnectConfig . passphrase ,
98
98
} ) ;
0 commit comments