Notices


Reply
Thread Tools
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#111
Originally Posted by pacmanster View Post
Previously I was using via my wifi to get onto my C: Drive on laptop.

Decided to start from scratch uninstalled and reinstalled everything - bad mistake.Generated new keys, copied and pasted output from .pub file into freeSHd. The SSH now doesn't like my password

debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/home/user/.ssh/id_rsa':
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey
debug1: Trying private key: /home/user/.ssh/id_dsa
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey).

The dsa doesn't look right I thought that it should read rsa??
I think the dsa is okay - it tries the rsa key first, then looks to see whether there's a dsa key to try next. It looks like you've either entered the wrong pass phrase for the rsa key, or have the wrong public key data on the server. Enable and check the server logs as well - see if those give any more information.
 
Posts: 10 | Thanked: 0 times | Joined on Feb 2010 @ Dublin, Ireland
#112
That's what I thought so I must have tried it 3 times yet still getting the same message.

There are 2 files pacmanster & pacmanster.pub in the .ssh folder. I leave the pacmanster file alone and I copy the output from the pacmanster.pub file into a pacmanster file on the server (FreeSHd on the PC).

Like I said, tried it 3 times and still can't find the issue.
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#113
Originally Posted by pacmanster View Post
That's what I thought so I must have tried it 3 times yet still getting the same message.

There are 2 files pacmanster & pacmanster.pub in the .ssh folder. I leave the pacmanster file alone and I copy the output from the pacmanster.pub file into a pacmanster file on the server (FreeSHd on the PC).

Like I said, tried it 3 times and still can't find the issue.
Okay, if your local file isn't named id_rsa then you'll need to specify the filename in your config file:
Code:
IdentityFile ~/.ssh/pacmanster
 

The Following User Says Thank You to Rob1n For This Useful Post:
Posts: 10 | Thanked: 0 times | Joined on Feb 2010 @ Dublin, Ireland
#114
To try and isolate the issue. I set up a new public/private key didn't enter a passphrase and used id_rsa (/home/user/.ssh/id_rsa.pub)

debug1: Next authentication method: publickey
debug1: Trying private key: /home/user/.ssh/identity
debug1: Offering public key: /home/user/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey
debug1: Trying private key: /home/user/.ssh/id_dsa
debug1: No more authentication methods to try.
Permission denied (publickey).

Where I must be making the mistake is either in the copy and paste to the pacmanster file on freeSSHd (from id_rsa.pub) or in the naming of the file to pacmaster (no extension) on freeSSHd.

Using port 521 instead of 522 (and yes this corresponds to the config file)

I've enabled the logging file on freeSSHd but getting no results so it doesn't seem to be hitting freeSSHd at all

UPDATE: Finally got this working by simply starting and restarting FreeSHd.

Last edited by pacmanster; 2010-02-27 at 20:57.
 
Posts: 559 | Thanked: 166 times | Joined on Jan 2010 @ Cyprus
#115
How do you clean the IP list on the VNC viewer on the N900....the list started to become huge!

Thanks
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#116
Originally Posted by sophocha View Post
How do you clean the IP list on the VNC viewer on the N900....the list started to become huge!

Thanks
You can clear the list by running (in X Terminal):
Code:
gconftool-2 --set --type list --list-type=string /apps/maemo/vncviewer/hosts "[]"
 
Posts: 2 | Thanked: 1 time | Joined on Mar 2010
#117
Copy and rename the public key from the N900 (/home/user/.ssh/id_rsa.pub) to C:\Program Files\freeSSHd\fred on the PC (the same name as you used for the user you created earlier, with no file extension).


how do u do this?
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#118
Originally Posted by przemekny View Post
Copy and rename the public key from the N900 (/home/user/.ssh/id_rsa.pub) to C:\Program Files\freeSSHd\fred on the PC (the same name as you used for the user you created earlier, with no file extension).


how do u do this?
The easiest way would be to run (in X Terminal):
Code:
cp /home/user/.ssh/id_rsa.pub /home/user/MyDocs
You should then be able to connect the phone up to the PC (in either PC Suite or Mass Storage mode) and copy the file off. In PC Suite mode it'll be in the Data directory (I think), and in Mass Storage mode it should be in the root directory.
 
Posts: 2 | Thanked: 1 time | Joined on Mar 2010
#119
ok i did that but now how to create config file. i got little trouble with that. thanks
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#120
Originally Posted by przemekny View Post
ok i did that but now how to create config file. i got little trouble with that. thanks
Either create it on the PC (make sure the editor you use is capable of saving in UNIX file format though) and copy it over, or use something like leafpad to create it on the N900.
 

The Following User Says Thank You to Rob1n For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 11:30.