Click to See Complete Forum and Search --> : Before I slay my computer....


magyartoth
01-23-2001, 12:58 PM
Could anyone help me out with an ssh problem? I installed Mandrake 7.x on an Intel box and I want to transfer files via ssh. I guess it's openssh...whichever came packaged with Mandrake. Anyway, SSH works fine, I can connect, do things, etc...But when I try to transfer files via sftp, it says..."failed to open a secure file transfer session...".

I did all the key-gen stuff. sftp & sftpserv are both on the system, SSH works fine, I just can't initiate a file transfer session.

Any other ideas?

Thanx

sild
01-23-2001, 03:53 PM
You could try using scp - like this:

scp username@host:dir username@host:dir

the 1st username@ is the source, the second is the destination, for example:

scp chris@foo.com:~/somefile /home/bob

would login to foo.com as chris, and copy the file 'somefile' from ~ (~ = home directory) to /home/bob on the local computer. Note that you dont have to specify the username if the username you are using on the local machine is the same as the one on the remote machine.

thats just bascic stuff, for more info type 'man scp' at a prompt http://www.linuxnewbie.org/ubb/smile.gif

scoobydope
02-03-2001, 01:26 PM
i had the same problem with scp, and just tried sftp with no difficulties.

[root@localbox /root]# sftp remote.box.com

root@remote.box.com's password:

---then i just typed in my password, and from there it was just like ftp....

sftp> lcd /home #changing into my local home directory
/home
sftp> pwd #asking what the remote directory is
/root
sftp> put linuxq3awdemo-1_11-6_x86_gz.sh #sending the file

then i got a line like this:
linuxq3awdemo-1_11-6_x86_gz.sh | 24064 kB | 47.6 kB/s | ETA: 00:08:26 | 49%


as it transfered the file.
yay.