Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    URPO questions and request

    Reply
    Page 2 of 5 | Prev |   1   2   3     4   | Next | Last
    phedders | # 11 | 2010-08-11, 13:01 | Report

    Originally Posted by rantom View Post
    Thanks for this info. However, I'm just wondering, that would there be a way to support even OS X? As far as I can tell, the CUPS is not available on it and thus I can't really use URPO. I'd rather not install Linux, since it seems to be quite unnecessary to me, I don't need printing from my phone that much.

    EDIT: *Cough*

    Anyways, I'm having some trouble in here now. I can't send the damned RSA via SSH, haven't tried though Bluetooth yet. I do manage to make the connection but every time I do it, the X-Term only prints
    Code:
    /Users/NICK/.ssh/authorized_keys/: Is a directory
    and I fail to receive the file.
    MaxOSXs printing system is CUPS. Apple bought the company that created CUPS....

    Edit | Forward | Quote | Quick Reply | Thanks

     
    rantom | # 12 | 2010-08-11, 17:44 | Report

    Originally Posted by helihyv View Post
    I don't have an OS X at hand, so I'll have to guess... If your authorized_keys really is a directory my guess is you should place the file inside it.

    Like this:
    cat ~/.ssh/id_urpo | ssh user@computer 'cat >> ~./ssh/authorized_keys/id_urpo'
    Yeah, I tried that earlier on and that resulted to the error "...is a directory".

    Originally Posted by phedders View Post
    MaxOSXs printing system is CUPS. Apple bought the company that created CUPS....
    Yes, I noticed that too. If you would've read the post in it's entirety you'd noticed, that I already edited it in there.

    Post #9

    Originally Posted by
    EDIT: *Cough*
    Originally Posted by
    CUPS is the standards-based, open source printing system developed by Apple Inc. for Mac OS® X and other UNIX®-like operating systems.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by rantom; 2010-08-11 at 17:48. Reason: Posting old quote.

     
    helihyv | # 13 | 2010-08-11, 19:14 | Report

    Originally Posted by rantom View Post
    Yeah, I tried that earlier on and that resulted to the error "...is a directory".
    What I wrote was a bit different than the command given in the help of URPO, but since I made a mistake, it would not have worked anyway. So it's good you didn't try . Anyway, if you just copy a file (instead of adding stuff to an existing one like the command in URPO help does), its easier to use the scp command.

    Is your ~/.ssh/authorized_keys really a directory instead of a file?







    Edit | Forward | Quote | Quick Reply | Thanks

     
    rantom | # 14 | 2010-08-11, 19:44 | Report

    Originally Posted by helihyv View Post
    What I wrote was a bit different than the command given in the help of URPO, but since I made a mistake, it would not have worked anyway. So it's good you didn't try . Anyway, if you just copy a file (instead of adding stuff to an existing one like the command in URPO help does), its easier to use the scp command.Is your ~/.ssh/authorized_keys really a directory instead of a file?


    link
    Huh. Don't know what happened but now the command
    Code:
    cat ~/.ssh/id_urpo | ssh user@computer 'cat >> ~./ssh/authorized_keys/id_urpo'
    worked just fine. I guess I misspelled it. I have the id_urpo now on my MacBook Pro, now what? If I try to browse from the N900 to find the original id_urpo, I can't find it, thanks to the fact that I can't browse to the /root.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by rantom; 2013-04-30 at 14:16.

     
    helihyv | # 15 | 2010-08-12, 07:42 | Report

    Originally Posted by rantom View Post
    Huh. Don't know what happened but now the command
    Code:
    cat ~/.ssh/id_urpo | ssh user@computer 'cat >> ~./ssh/authorized_keys/id_urpo'
    worked just fine. I guess I misspelled it. I have the id_urpo now on my MacBook Pro, now what?
    Just to make thinks clearer:
    Do you now have a directory authorized_keys with the file id_urpo in it or a file authorized_keys containing the contents of the original id_urpo ? The latter is what Linux wants, I do not know about OS X.

    Originally Posted by rantom View Post
    If I try to browse from the N900 to find the original id_urpo, I can't find it, thanks to the fact that I can't browse to the /root.
    The browse dialog is limited to "N900" ( which is its default behavior), which obviously is a bug. I'll file a bug report on that so it's not forgotten about.
    You can still write the filename directly. You should use /home/user/.ssh/id_urpo instead of ~/.ssh/id_urpo

    Edit | Forward | Quote | Quick Reply | Thanks

     
    artohyv | # 16 | 2010-08-13, 12:25 | Report

    Sadly, there seems not be any simple way to authenticate using password. Technically, OpenSSH doesn't accept password through QProcess standart input channel. That is because of security policies of openssh. Using external tools (empty etc) will add dependencies (and only MAY work...).

    Summary: URPO works with ssh keys. For very temporary use, it is possible to run URPO from terminal and switch to terminal and write password (four times per one printing job).

    Urpo is only a small utility with simple procedure (ask printers with lpstat; copy file with scp; print with lp; run commands through ssh). Hopefully the system itself will support printing in some day...

    Arto

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

     
    rantom | # 17 | 2010-08-16, 19:42 | Report

    Originally Posted by helihyv View Post
    Just to make thinks clearer:
    Do you now have a directory authorized_keys with the file id_urpo in it or a file authorized_keys containing the contents of the original id_urpo ? The latter is what Linux wants, I do not know about OS X.



    The browse dialog is limited to "N900" ( which is its default behavior), which obviously is a bug. I'll file a bug report on that so it's not forgotten about.
    You can still write the filename directly. You should use /home/user/.ssh/id_urpo instead of ~/.ssh/id_urpo
    Nope, doesn't seem to work. I have everything setup correctly and still fail to make a connection between URPO and my MacBook Pro. I just get connection failure. I've checked the file, it's chmodded to 600, as it should be, and the computer has it on it's system.

    Kind of running out of options in here.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    deed | # 18 | 2010-08-16, 20:00 | Report

    Originally Posted by artohyv View Post

    Summary: URPO works with ssh keys. For very temporary use, it is possible to run URPO from terminal and switch to terminal and write password (four times per one printing job).


    Arto
    This way it works perfectly for my needs. Not very "user-friendly", but who cares? The app does the job on *nix + cups system, and that's great, thanks!

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

     
    helihyv | # 19 | 2010-08-17, 06:39 | Report

    Originally Posted by rantom View Post
    Nope, doesn't seem to work. I have everything setup correctly and still fail to make a connection between URPO and my MacBook Pro. I just get connection failure. I've checked the file, it's chmodded to 600, as it should be, and the computer has it on it's system.

    Kind of running out of options in here.
    What does the debug window of URPO tell you after you have tried to connect?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    rantom | # 20 | 2010-08-17, 17:28 | Report

    Originally Posted by helihyv View Post
    What does the debug window of URPO tell you after you have tried to connect?
    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

    Edit | Forward | Quote | Quick Reply | Thanks

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