Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    URPO questions and request

    Reply
    Page 3 of 5 | Prev |   1     2   3   4     5   | Next
    helihyv | # 21 | 2010-08-18, 09:03 | Report

    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'

    Edit | Forward | Quote | Quick Reply | Thanks

     
    rantom | # 22 | 2010-08-18, 18:30 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    helihyv | # 23 | 2010-08-19, 16:16 | Report

    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...

    Edit | Forward | Quote | Quick Reply | Thanks

     
    rantom | # 24 | 2010-08-19, 17:04 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    whaleyboy | # 25 | 2010-09-04, 18:37 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    whaleyboy | # 26 | 2010-09-04, 22:10 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    helihyv | # 27 | 2010-09-05, 10:20 | Report

    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.)

    Edit | Forward | Quote | Quick Reply | Thanks

     
    whaleyboy | # 28 | 2010-09-05, 15:40 | Report

    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!

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to whaleyboy For This Useful Post:
    helihyv

     
    helihyv | # 29 | 2010-09-13, 10:31 | Report

    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...

    Edit | Forward | Quote | Quick Reply | Thanks

     
    ghostcube | # 30 | 2010-09-27, 09:31 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 3 of 5 | Prev |   1     2   3   4     5   | Next
vBulletin® Version 3.8.8
Normal Logout