Notices


Reply
Thread Tools
Posts: 63 | Thanked: 139 times | Joined on Apr 2010
#21
Originally Posted by rantom View Post
Code:
[Running command ssh -i /home/user/.ssh/id_urpo rantom@10.0.0.4 env LANG=en lpstat -p ]
Prosessi päättyi paluuarvolla 255
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
Host key verification failed.

Yhdistämisessä virhe

You probably have the private ssh key in your Mac, instead of the public key. The public key file ends with .pub (like id_urpo.pub ). It was created together with the private key.

The .pub part is missing from the URPO help and my earlier answer, sorry.

Try running this from your N900:

Code:
 cat ~/.ssh/id_urpo.pub | ssh user@computer 'cat >> ~./ssh/authorized_keys'
If it does not help try this one:

Code:
 cat ~/.ssh/id_urpo.pub | ssh user@computer 'cat >> ~./ssh/authorized_keys2'
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#22
Originally Posted by helihyv View Post
You probably have the private ssh key in your Mac, instead of the public key. The public key file ends with .pub (like id_urpo.pub ). It was created together with the private key.

The .pub part is missing from the URPO help and my earlier answer, sorry.

Try running this from your N900:

Code:
 cat ~/.ssh/id_urpo.pub | ssh user@computer 'cat >> ~./ssh/authorized_keys'
If it does not help try this one:

Code:
 cat ~/.ssh/id_urpo.pub | ssh user@computer 'cat >> ~./ssh/authorized_keys2'
You can't possibly imagine how close I'm to get mad in here. I can't get this thing to work and it's really pissing me off. I'm not blaming anyone here, since I was told that this would work with Linux, most likely not with OS X, even though it supports CUPS. And nope, I still can't get it to work. I've re-done every damn step and chmodded files but nope.

Anyways here's the debugs. With .pub and without it.

Code:
Tässä ikkunassa on tietoa, jonka avulla voi selvittää virhetilanteita
[Running command ssh -i /home/user/.ssh/id_urpo.pub rantom@10.0.0.4 env LANG=en lpstat -p ]
Prosessi päättyi paluuarvolla 255
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
Host key verification failed.

Yhdistämisessä virhe
Code:
[Running command ssh -i /home/user/.ssh/id_urpo rantom@10.0.0.4 env LANG=en lpstat -p ]
Prosessi päättyi paluuarvolla 255
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
Host key verification failed.

Yhdistämisessä virhe
And creating a new folder "authorized_keys2" didn't help either.
 
Posts: 63 | Thanked: 139 times | Joined on Apr 2010
#23
Originally Posted by rantom View Post
And creating a new folder "authorized_keys2" didn't help either.
You were not supposed to create a folder.
The command:
Code:
 cat ~/.ssh/id_urpo.pub | ssh user@computer 'cat >> ~./ssh/authorized_keys2'
does not move the file into a folder authorized_keys2, it adds the public key held in the file id_urpo.pub to the end of the file authorized_keys2 (if it does not exist, cat creates it first) .

If you created a folder authorized_keys2, you should remove (or rename if you want to keep the contents) it and try again with the above command.

If you created the folder authorized_keys yourself too, its best to rename that too and try again with the command

Code:
 cat ~/.ssh/id_urpo.pub | ssh user@computer 'cat >> ~./ssh/authorized_keys'
(SSH should just need the public key in either authorized_keys or authorized_keys2, but I am not sure which one OS X wants.)

My first guess in the post #8 was based on the far too hasty assumption that the folder authorized_keys was preconfigured for you by the OS X, and thus should be there. Sorry for the mess...
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#24
Originally Posted by helihyv View Post
You were not supposed to create a folder.
The command:
Code:
 cat ~/.ssh/id_urpo.pub | ssh user@computer 'cat >> ~./ssh/authorized_keys2'
does not move the file into a folder authorized_keys2, it adds the public key held in the file id_urpo.pub to the end of the file authorized_keys2 (if it does not exist, cat creates it first) .

If you created a folder authorized_keys2, you should remove (or rename if you want to keep the contents) it and try again with the above command.

If you created the folder authorized_keys yourself too, its best to rename that too and try again with the command

Code:
 cat ~/.ssh/id_urpo.pub | ssh user@computer 'cat >> ~./ssh/authorized_keys'
(SSH should just need the public key in either authorized_keys or authorized_keys2, but I am not sure which one OS X wants.)

My first guess in the post #8 was based on the far too hasty assumption that the folder authorized_keys was preconfigured for you by the OS X, and thus should be there. Sorry for the mess...
It's alright. Thanks for the help though, we'll see if someone else who's using a Mac here can get this to work. You'll by the way need to update the manual of URPO as well, since it has command for private, not .pub.

I myself had to give up on testing this, since I flashed my N900 today. I got my GPRS/3G going like mad and rarely working and also lost some widgets and couldn't reinstall packages so flashing was quite imminent. I can quite safely say though that these are not related to URPO, since I can't recall having these issues with it.
 
whaleyboy's Avatar
Posts: 74 | Thanked: 76 times | Joined on Sep 2009 @ UK
#25
I'm also having trouble connecting. I've done all the steps and have id_urpo and id_urpo.pub in ~/.ssh/ on my N900 and the key is inside authorized_keys in ~/.ssh/ on my PC (ubuntu with CUPS installed). This is the debug output I'm getting...

[running command ssh -i /root/.ssh/id_urpo matthew@192.168.1.64 env LANG=en lpstat -p ]
Process exited with code 255
Warning: Identity file /root/.ssh/id_urpo not accessible: Permission denied.
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
Permission denied (publickey,password).

Any ideas what I'm doing wrong?
 
whaleyboy's Avatar
Posts: 74 | Thanked: 76 times | Joined on Sep 2009 @ UK
#26
ok i've got rid of the first error by changing the path from /root/.ssh to /home/user/.ssh but I'm still getting the "no such file" error for "ssh-askpass". I've checked /usr/bin/ and sure enough there is no "ssh-askpass" in there. Do I need to install this somehow?
 
Posts: 63 | Thanked: 139 times | Joined on Apr 2010
#27
Originally Posted by whaleyboy View Post
ok i've got rid of the first error by changing the path from /root/.ssh to /home/user/.ssh but I'm still getting the "no such file" error for "ssh-askpass". I've checked /usr/bin/ and sure enough there is no "ssh-askpass" in there. Do I need to install this somehow?
Do you get any other error messages? SSH should only look for "ssh-askpass" if the key pair authentication fails. (The ssh-askpass would be used to graphically ask for password. To my knowledge no ssh-askpass is available for N900.)
 
whaleyboy's Avatar
Posts: 74 | Thanked: 76 times | Joined on Sep 2009 @ UK
#28
It's ok, I've sorted it. I needed to pipe the id_urpo.pub into the authorized key file (I just did id.urpo file before.)

Thanks for the cool app though...first phone I've been able to print pdf's from!
 

The Following User Says Thank You to whaleyboy For This Useful Post:
Posts: 63 | Thanked: 139 times | Joined on Apr 2010
#29
There is now a new bugfix version (0.9.2-1) of URPO in extras-devel.

Changes since the previous version:
-detects the device language correctly even if the language and region settings don't match
-help file instructions on transferring the public key to the remote computer fixed
-printer name can be entered manually
-timeout for connecting to server is now 30 s.
-file browsing dialog for the private key now starts from /home/user/.shh/

Bug reports are welcome...
 
Posts: 8 | Thanked: 1 time | Joined on Sep 2010 @ germany
#30
hmm, i cant connect to my pc from n900 even i did all mentioned here.
i see in debug the ssh-askpass problem.

Any idea what iam doing wrong?

greetz
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 13:51.