> I have a linux box at home that I test things like amavis before moving it > to other boxes... > > I have started an ssh sessionn with the -X and -C flags, for compression and > X... > > up until now, I have been using putty and iXplorer to copy files back and > forth over ssh between hosts... > > now I want to start using the linux box do my updates and stuff as it seems > to be faster then any windows tools I have... > > If I have two linux hosts connected by a compressed ssh session, and I want > to copy a file via ssh from one to the other over the ssh link, whats the > best way to do that??? > > is it scp? or sftp? I am thinking its probably the former, but it seems to > require authorisation and setting of compressionn independent of the actual > ssh session in progress.. (I just read the man page...) > > > say i want to copy the file /home/franki/myfile.txt from systemA to > /home/franki2/myfile.txt > > and do it within the authenticate ssh session I am already in... what > command would I use?? is there one? > > or do I have to use scp in and off itself regardless of wether I have a ssh > session going anyway?? > > rgds > > Frank...
$ man -k ssh | grep -vi issh ssh (1) - OpenSSH SSH client (remote login program) ssh [slogin] (1) - OpenSSH SSH client (remote login program) ssh-add (1) - adds RSA or DSA identities for the authentication agent ssh-agent (1) - authentication agent ssh-copy-id (1) - install your identity.pub in a remote machine's authorized_keys ssh-keygen (1) - authentication key generation, management and conversion ssh-keyscan (1) - gather ssh public keys sshd (8) - OpenSSH SSH daemon ssh-add is used with ssh-agent What you want is to setup ssh-agent upon login, which asks for your passphrase. >From there, given that your other machines have the publick key, you can use scp or ssh to connect to those machines without being prompted for the passphrase. At least that's what I understand. I tried this in the past but it's been a while since I've actually used it, and little time to follow up on it. I use the following aliases to see if an agent is already started, how many agents are started, and to kill agent... alias agents=`ps -aux |grep $USER |grep -v grep |grep -i ssh-agent |wc -l` alias lagent=`ssh-add -l 2> /dev/null |grep $USER |wc -l` alias kagent='ssh-agent -k' Thanks... Dan.
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
