[plt-scheme] ssh/sftp library in mzscheme
On Feb 15, Alex Shinn wrote:
> >>>>> "Eli" == Eli Barzilay <eli at barzilay.org> writes:
>
> Eli> On Feb 14, Yvan Godin wrote:
> >> For a little projet I need an access to a ssh/sftp library
> >> Erlang provide one but I will prefer use mzscheme ;-)
> >>
> >> Do you know if something already exist for mzscheme ? (may be
> >> a binding to libshh2 http://sourceforge.net/projects/libssh2)
>
> Eli> I don't know of any library, but running ssh/scp in a
> Eli> subprocess should be easy.
>
> Not if you need to be able to request the password, in which case
> ssh needs to be run in a pty (at least on Unix systems). The
> Chicken pty egg could be adapted, and the docs include a sample ssh
> script.
If it's running from a terminal then it uses it to ask for a password;
otherwise it uses whatever you have in your `SSH_ASKPASS' environment
variable -- which defaults to gnome-ssh-askpass on my machine.
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!