@@ -78,10 +78,10 @@ export class SSHAgent extends AgentBase implements AgentWithInitialize {
7878 const sshConnectConfig : ConnectConfig = {
7979 readyTimeout : 20000 ,
8080 keepaliveInterval : 20000 ,
81- host : this . url . hostname ,
81+ host : decodeURIComponent ( this . url . hostname ) ,
8282 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 ,
8585 privateKey : this . proxyOptions . sshOptions ?. identityKeyFile
8686 ? await fs . readFile ( this . proxyOptions . sshOptions . identityKeyFile )
8787 : undefined ,
@@ -92,7 +92,7 @@ export class SSHAgent extends AgentBase implements AgentWithInitialize {
9292 this . logger . emit ( 'ssh:establishing-conection' , {
9393 host : sshConnectConfig . host ,
9494 port : sshConnectConfig . port ,
95- password : ! ! sshConnectConfig . passphrase ,
95+ password : ! ! sshConnectConfig . password ,
9696 privateKey : ! ! sshConnectConfig . privateKey ,
9797 passphrase : ! ! sshConnectConfig . passphrase ,
9898 } ) ;
0 commit comments