in reply to Re^2: OT - SSH Help
in thread SSH Help

For bonus points, tell us how to do it on Windows, since that was the OS in question.

C.

Replies are listed 'Best First'.
Re^4: OT - SSH Help
by smullis (Pilgrim) on Oct 29, 2004 at 11:02 UTC

    Castaway - Ooooh... A challenge... ;-)

    There is a problem with ssh-add on Win32 in that the ssh-agent thingummyjob only applies to the ssh-agent associated with it. i.e. you cannot (without a serious hack) run Program Manager (or whatever new-fangled name it's called nowadays) under ssh-agent...

    But:
    In my cygwin ~/.bashrc I have the function:
    newshell() { rxvt -g 90x80+560+0 -sr -sl 5000 -vb -e /bin/bash --login - & }

    So, I run ssh-add and then whenever I need a new shell I run the newshell func. (I have an X Client running in the windowless mode...)
    I'm sure if you were clever (I think I've used up my allowance for that this year...) you could create the relevant scripts to create those funky little icon things that some people seem to like so much.


    SM

Re^4: OT - SSH Help
by archen (Pilgrim) on Oct 29, 2004 at 12:43 UTC
    If you just want to copy specific files and don't care about storing the password in the script you can use the scp client from putty. pscp is pretty easy to use and you should be able to pass everything you need to retrieve a file in one command. I've set similar things up in batch files.