
15th April 2010, 15:21
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Are you sure you typed in the ~ before /.ssh/authorized_keys2?
Code:
cat /tmp/id_dsa.pub >> ~/.ssh/authorized_keys2
|

15th April 2010, 16:26
|
|
Senior Member
|
|
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 327
Thanks: 62
Thanked 9 Times in 8 Posts
|
|
Yes Falko I did that.
Quote:
root@backup:/home/administrator# cat /tmp/id_dsa.pub >> ~/.ssh/authorized_keys2
bash: /root/.ssh/authorized_keys2: No such file or directory
root@backup:/home/administrator#
|
Any ideas to get this fixed?
Rudolf.
Last edited by skoena; 16th April 2010 at 09:27.
|

16th April 2010, 14:52
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
|

16th April 2010, 20:51
|
|
Senior Member
|
|
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 327
Thanks: 62
Thanked 9 Times in 8 Posts
|
|
This is the output:
Quote:
drwx------ 4 root root 4096 2010-04-14 22:40 .
drwxr-xr-x 22 root root 4096 2010-04-16 18:12 ..
drwx------ 2 root root 4096 2010-04-14 22:42 .aptitude
-rw------- 1 root root 3429 2010-04-16 18:10 .bash_history
-rw-r--r-- 1 root root 2227 2008-12-23 19:53 .bashrc
drwxr-xr-x 2 root root 4096 2010-04-14 22:42 .debtags
-rw-r--r-- 1 root root 140 2007-11-19 18:57 .profile
-rw------- 1 root root 1024 2010-04-14 22:57 .rnd
-rw------- 1 root root 4809 2010-04-14 22:40 .viminfo
|
|

17th April 2010, 18:39
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Run
Code:
mkdir /root/.ssh
chmod 700 /root/.ssh
Then try again.
|

17th April 2010, 23:24
|
|
Senior Member
|
|
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 327
Thanks: 62
Thanked 9 Times in 8 Posts
|
|
OK got the folder created, tnx Falko.
I use Ubuntu 9.04, how to get this working? I can't seem to connect as root only as admin user.
When I follow the steps on http://blog.it-podrska.info/2009/08/...uthentication/ and try to connect via ssh it still asks me for a password.
|

18th April 2010, 18:50
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Did you enable the root account (i.e., set a root password)?
Are root logins allowed in your SSH configuration (etc/ssh/sshd_config)?
|

18th April 2010, 22:32
|
|
Senior Member
|
|
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 327
Thanks: 62
Thanked 9 Times in 8 Posts
|
|
Falkon,
In the sshd_config is sais "PermitRootLogin yes" and the root password is set.
|

19th April 2010, 11:12
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Hm... What's root's shell (it's listed in /etc/passwd)?
|

19th April 2010, 11:26
|
|
Senior Member
|
|
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 327
Thanks: 62
Thanked 9 Times in 8 Posts
|
|
Falko,
It's like this:
Quote:
|
root:x:0:0:root:/root:/bin/bash
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 15:32.
|
Recent comments
13 hours 8 min ago
18 hours 7 min ago
19 hours 33 min ago
20 hours 26 min ago
22 hours 10 min ago
1 day 2 hours ago
1 day 3 hours ago
1 day 5 hours ago
1 day 18 hours ago
1 day 20 hours ago