scp problems


Forum: Networking
Topic: scp problems
started by: jpeters

Posted by jpeters on Sep. 22 2007,19:33
I'm experimenting with using scp to transfer files between two linux computers  using a local connection (i.e., 192.168.1.xxx).
I haven't found too much useful info on the procedure, but tried loading /usr/sbin/sshstart to generate some keys, and then tried "scp local_file 192.168.1.xxx:/remote_directory."  This set up the remote computer as a known host, and then asked me for a password. I tried dsl, sudo su, su ...nothing worked. Next I tried "ssh_keygen -t rsa" to generate a key without a password, which I place in the remote computer's .ssh directory as "authorized_keys".  This was supposed to eliminate the password request, but had no effect.  Anyone have a good link for getting this working?  Thanks


EDIT: I just got this working by creating a password on the remote computer, and runing the scp script in root (also, putting the authorized keys file in /root/.ssh.  I would welcome other ideas/info

EDIT2:  I deleted "authorized_files", since it doesn't appear to have any effect.

Posted by Divago on Sep. 24 2007,13:18
Quote (jpeters @ Sep. 22 2007,15:33)
I'm experimenting with using scp to transfer files between two linux computers  using a local connection (i.e., 192.168.1.xxx).
I haven't found too much useful info on the procedure, but tried loading /usr/sbin/sshstart to generate some keys, and then tried "scp local_file 192.168.1.xxx:/remote_directory."  This set up the remote computer as a known host, and then asked me for a password. I tried dsl, sudo su, su ...nothing worked. Next I tried "ssh_keygen -t rsa" to generate a key without a password, which I place in the remote computer's .ssh directory as "authorized_keys".  This was supposed to eliminate the password request, but had no effect.  Anyone have a good link for getting this working?  Thanks


EDIT: I just got this working by creating a password on the remote computer, and runing the scp script in root (also, putting the authorized keys file in /root/.ssh.  I would welcome other ideas/info

EDIT2:  I deleted "authorized_files", since it doesn't appear to have any effect.

hi
i got some similar problem

first, to log into dsl with ssh/scp/ u need a root password; this could be accomplished doing
#sudo su
#passwd

and change password
if you whant make persistent this password (i mean: after reboot u dont need to change password anymore) you need to backup /etc/shadow file

if you just need to enter in ssh without asking for password (i mean: authorize your keys so does not ask for password) you must create a file "authorized_keys" under /root/.ssh
then u need to backup /root/.ssh and /etc/ssh folder adding them to /home/dsl/.filetool.lst file

dunno how this is correct; btw this is what i did, and it works :D

hope this help

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.