You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Paul DeCoursey <pa...@decoursey.net> on 2006/01/12 17:47:00 UTC

VFS - sftp password question

I'm trying to connect to a SFTP server with VFS but I cannot get it to work
because the password has an @ in it, actually a few of them. I have found that
it fails if the password has any odd characters in it. Is there an alternative
way to specify the password for an SFTP connection?

I am currently trying
FileSystemManager.resolveFile("sftp://user:pass@server/file");
 so clearly I cannot have an @ or : or / in the password. I've tried using %40
but it fails just saying it cannot connect.

Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: VFS - sftp password question

Posted by Paul DeCoursey <pa...@decoursey.net>.
Nevermind... %40 is working, the issue isn't the passowrd I am finding out..
It's that the server only supports scp and not sftp.

Paul

Quoting Paul DeCoursey <pa...@decoursey.net>:

> I'm trying to connect to a SFTP server with VFS but I cannot get it to work
> because the password has an @ in it, actually a few of them. I have 
> found that
> it fails if the password has any odd characters in it. Is there an 
> alternative
> way to specify the password for an SFTP connection?
>
> I am currently trying
> FileSystemManager.resolveFile("sftp://user:pass@server/file");
> so clearly I cannot have an @ or : or / in the password. I've tried using %40
> but it fails just saying it cannot connect.
>
> Paul
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>




---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org