I did it once, not sure how...better write this stuff down.
I am using WinSCP3 to upload files for FTP access. I am being asked for a session password. I have tried leaving it blank, did not work.
And do I use SCP or SFTP or whatever as the mode in WinSCP3?
thx, kt
Kenny Tilton writes:
I did it once, not sure how...better write this stuff down.
I am using WinSCP3 to upload files for FTP access. I am being asked for a session password. I have tried leaving it blank, did not work.
And do I use SCP or SFTP or whatever as the mode in WinSCP3?
Since they have SFTP running, use that. I'm not sure what it means by session password. I just checked, and SFTP works for me, logging in as tburdick, and giving the appropriate password.
Kenny Tilton writes:
I did it once, not sure how...better write this stuff down.
I am using WinSCP3 to upload files for FTP access. I am being asked for a session password. I have tried leaving it blank, did not work.
And do I use SCP or SFTP or whatever as the mode in WinSCP3?
thx, kt
I don't use Windows much, but when I do I use Putty's SCP client (they have an sftp as well
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
the scp program works from a shell the same way as Linux scp
On Wed, Nov 12, 2003 at 07:38:54PM -0500, Kenny Tilton wrote:
I did it once, not sure how...better write this stuff down.
I you do write this down, it might make a good addition to cl.net FAQ -- it currenly assumes a unix-platform of some sort, and could hence use more info for Windows users.
And do I use SCP or SFTP or whatever as the mode in WinSCP3?
SCP as a protocol at least should work.
The password is your Common-lisp.net password.
If you add your ssh public key to common-lisp.net:/home/ktilton/.ssh/authorized_keys, and run ssh-agent you don't even need to give a password at all.
I can't tranlate this to your tools, but here's more detail:
----- 1) Generate the public/private keypair (unless you already have one):
$ ssh-keygen -t dsa -f samplekey Generating public/private dsa key pair. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in samplekey. Your public key has been saved in samplekey.pub. The key fingerprint is: c6:95:71:d7:17:19:1a:04:53:98:68:a6:bc:da:44:c7 demoss@rhino
----- 2) Add the contents of samplekey.pub to common-lisp.net:~/.ssh/authorized_keys
$ cat samplekey.pub ssh-dss AAAAB3NzaC1kc3MAAACBAPzIHdIvcZNkKtOKomKvUcBrPjFL5jCYxnTwNjeCOazG80mEqOCt/O2abYJaY9nu6i0Fn4TzAGQhYH/IAdZy3nRTDxMtcV1+ZemjuRsU8CweHTIMP8AoMcrg/YNxSxhNuvZcdI81uf3qvPRmDZ2dn1MNqd1JEAp4y2NgWWrX4MFnAAAAFQCRilZjkqPctMcFxTpVpgF+6yO4ZQAAAIAjX/SY1hKsATVTUXyJB2Nk3ubffl5H/HEVEsHoX496oTDU3wcdQX71uuTvs67NCehkrfmN5Gq+NGJOQx824ysxOaJ6c0RTsx4PvR/XxWvNXgCRaqjNCh2fvULrEFVvtXT9QPMuUncBlayqjqSnk3U3a2/cW1OszUKVf8JMk3UWFQAAAIEA9wNigZhTzFLQIbaJ72JDqNoxediBmT87bEAGslZjcxzUyIUJzkuidT+x9QxmFD7wWHReIvPp2ZETYHE+nURhfeVTQfY6bVJHDqfcXXMigl5AxyVqTdmzEP+J4zo0ArrVEN7tfhnFx9HqyeG078YPHpO0jjKsM2gNzSiSlb9CxN8= demoss@rhino
$ ssh nsiivola@common-lisp.net
Welcome to common-lisp.net!
No building or CVS/RAM intensive tasks. Direct questions and suggestions to admin@common-lisp.net. Thanks!
Erik.
No mail. Last login: Thu Nov 13 02:16:08 2003 from cs78136074.pp.htv.fi [~] nsiivola@common-lisp$ echo 'ssh-dss AAAAB3NzaC1kc3MAAACBAPzIHdIvcZNkKtOKomKvUcBrPjFL5jCYxnTwNjeCOazG80mEqOCt/O2abYJaY9nu6i0Fn4TzAGQhYH/IAdZy3nRTDxMtcV1+ZemjuRsU8CweHTIMP8AoMcrg/YNxSxhNuvZcdI81uf3qvPRmDZ2dn1MNqd1JEAp4y2NgWWrX4MFnAAAAFQCRilZjkqPctMcFxTpVpgF+6yO4ZQAAAIAjX/SY1hKsATVTUXyJB2Nk3ubffl5H/HEVEsHoX496oTDU3wcdQX71uuTvs67NCehkrfmN5Gq+NGJOQx824ysxOaJ6c0RTsx4PvR/XxWvNXgCRaqjNCh2fvULrEFVvtXT9QPMuUncBlayqjqSnk3U3a2/cW1OszUKVf8JMk3UWFQAAAIEA9wNigZhTzFLQIbaJ72JDqNoxediBmT87bEAGslZjcxzUyIUJzkuidT+x9QxmFD7wWHReIvPp2ZETYHE+nURhfeVTQfY6bVJHDqfcXXMigl5AxyVqTdmzEP+J4zo0ArrVEN7tfhnFx9HqyeG078YPHpO0jjKsM2gNzSiSlb9CxN8= demoss@rhino' >> .ssh/authorized_keys
----- 3) Tell ssh-agent about the new key. (This assumes that ssh-agent is already running.)
nsiivola@common-lisp$ exit logout Connection to common-lisp.net closed.
Enter passphrase for samplekey: Identity added: samplekey (samplekey)
----- 4) Done! Now you should be able to do passwordless commits, uploads, and whatnot. The way this works: when you make the ssh connection (which underlies scp and sftp as well) the ssh-daemon on common-lisp.net sends you a challenge encrypted with you public key. The ssh-agent running on your machine decrypts it with your private key + passphrase pair, and send the response.
For the long run you probably want to set ssh-agent to run automatically when you login on your computer.
Cheers,
-- Nikodemus
Nikodemus Siivola writes:
On Wed, Nov 12, 2003 at 07:38:54PM -0500, Kenny Tilton wrote:
I did it once, not sure how...better write this stuff down.
I you do write this down, it might make a good addition to cl.net FAQ -- it currenly assumes a unix-platform of some sort, and could hence use more info for Windows users.
One option for windows users is to install cygwin.