SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Problem with key generation in Ubuntu 8.04 (LTS)
Author Message
Post Problem with key generation in Ubuntu 8.04 (LTS) 
Hi Luis (and others),

Since I must run back and forth between the machines, is there any way
to use a sneaker-LAN (e.g. USB memory stick) to transport the keys?
-- ken

On Thu, 2010-03-11 at 16:52 -0500, Kenneth L. Owen wrote:
Hi Luis,

I really appreciate your help. I've tried the key generation multiple
times and can't believe that every time I mistype the password! The
keys are phrase-less. /root/.ssh and /var/lib/backuppc/.ssh have 700
permissions. The authorized_keys file has 600 permission. The newly
created keys have 644 permissions and are set after transfer with the
command: chmod -R go-rwx ~/.ssh

On the server, I su to root then su to backuppc. Working as backuppc,
the command that is not working is:

scp ~/.ssh/BackupPC_id_rsa.pub root < at > 192.168.1.101:/root/.ssh/

I get no error, just a prompt to enter the root password for
192.168.1.101. I enter the password, but it is not accepted and asks me
to try again. I can occasionally mistype a complicated password, but I
have carefully checked each key stroke.

Working as root on machine at 192.168.1.101, the command that is not
working is:

scp ~/.ssh/client_id_rsa.pub
root < at > 192.168.1.106:/var/lib/bacuppc/.ssh/client_id_rsa.pub

Again, no error and prompted for root password which is not accepted.

I have root passwords for both of these machines and have no problem
elevating to root to execute all other functions.


As a test, I ssh connected to the backuppc server at 192.168.1.106 from
192.168.1.101. I issued the following command:

scp /home/ken/20100308.backuppc_install.txt ken < at > 192.168.1.101:/home/ken/

I was prompted for password for ken and the command completed with no
problem. -- ken

On Thu, 2010-03-11 at 18:56 +0000, Luis Paulo wrote:
Smile
So,
you may tell us exactly the scp command you are trying (or use
ssh-copy-id command instead, which I recommend).

I would still try to connect between two non root users to see if it
also doesn't work

Are you creating rsa files with or without password?

Wrong permissions for the .ssh dir may also be the problem.
$ chmod 700 ~/.ssh
$ chmod 600 ~/.ssh/authorized_keys
Remember to restart ssh after changes Smile

maybe show us your client /etc/ssh/sshd_config if none of the above
helps/work (check for AllowUsers directives, etc)

Luis

PS: I guess you are planning to use
$Conf{RsyncClientCmd} = '$sshPath -q -x -l root $host $rsyncPath
$argList+';


On Thu, Mar 11, 2010 at 2:48 PM, Kenneth L. Owen
<tx836519 < at > bellsouth.net> wrote:
Hi Luis,

I thought you had the answer! But when I checked, I found the files
(sshd_config) are set to allow root logon. -- ken
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ BackupPC-users mailing list BackupPC-users < at > lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post Problem with key generation in Ubuntu 8.04 (LTS) 
Why not just log in as a non-root user, (then "su -" to root), from either
one of the machines, or a machine on the same network as both?

Hi Luis (and others),

Since I must run back and forth between the machines, is there any way
to use a sneaker-LAN (e.g. USB memory stick) to transport the keys?
-- ken


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB