View Single Post
Old 09-13-2013, 10:45 AM   #414
MecMuffin
Junior Member
MecMuffin began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Sep 2013
Location: Austria
Device: Kindle PW 5.3.6 JB
Got a Question about SSH shared Keys. I dont know what I'm doing wrong.
I just want do connect SSH/SSHFS as root@kindle without entering a password.

This is what I tryed:

Code:
ben@ubuntu:~$ ssh-keygen 
Generating public/private rsa key pair.
Enter file in which to save the key (/home/ben/.ssh/id_rsa): 
/home/ben/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/ben/.ssh/id_rsa.
Your public key has been saved in /home/ben/.ssh/id_rsa.pub.
The key fingerprint is:
.
.
.
ben@ubuntu:~$ sudo nautilus ~/.ssh;
[sudo] password for ben: 
Initializing nautilus-gdu extension
changed the 'ben@ubuntu' to root@127.0.0.1, saved, closed.

Code:
Shutting down nautilus-gdu extension
ben@ubuntu:~$ ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.0.16
root@192.168.0.16's password: 
Now try logging into the machine, with "ssh 'root@192.168.0.16'", and check in:

  ~/.ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

ben@ubuntu:~$ ssh root@192.168.0.16
root@192.168.0.16's password: 
#################################################
#  N O T I C E  *  N O T I C E  *  N O T I C E  # 
#################################################
Rootfs is mounted read-only. Invoke mntroot rw to
switch back to a writable rootfs.
#################################################
[root@kindle root]#
(made over wifi)
And he still asks for password....

I also tryed to copy the id_rsa.pub manually to /usbnet/etc/
no change
MecMuffin is offline   Reply With Quote