Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

ajt (2546)

ajt
  (email not shown publicly)
http://www.iredale.net/

UK based. Perl, XML/HTTP, SAP, Debian hacker.

  • CPAN: ATRICKETT [cpan.org]
  • PerlMonks: ajt [perlmonks.org]
  • Local LUG: AdamTrickett [lug.org.uk]
  • Debian Administration: ajt [debian-adm...ration.org]
  • LinkedIn: drajt [linkedin.com]

Journal of ajt (2546)

Friday November 22, 2002
07:52 AM

SSH Woes

[ #9085 ]

Confession: I've never used CVS, and my SSH understanding is not as good as it should be. I know the benefits of CVS, and I know not to use Telnet/ftp when I should be using SSH, but I'm still clearly a novice.

For the Perl RSS project I offered to do some XHTML, see here for work in progress. brian said it was okay, and I should check it into the project CVS repository and load it to the site.

I've known that SSH clients support PKI technology, but never bothered with it, as I can remember my password for each machine I use, and anyway I tend to login all day, so I don't pop in and out. So for WinCVS I diligently generated my SSH2 keys and installed the public key on some servers at work, and found that it was actually quite useful, and makes PuTTY even more useful. I then tried the same at home, while I waited for SourceFourge to take and process my public keys.

For some reason my home system refuses to use the keys. Running sshd in uber debug mode I can see that it didn't like the ownership of the .ssh folder (even though on the working machines they were also owned by me, i.e. not root). So I changed the ownership of the folder to root and tried again. This time it went though the motions but failed to find a key in the file, and again defaulted to a manual login. When I copied the .ssh/authorized_keys file to root, and tried to login as root, it worked okay!

I've done some Googling, but so far no luck, I suppose I'll just have to actually read SSH: The Definitive Guide and figure it out on my own. I know my home system is running the latest SSH server, as I compiled it myself, and I know that PKI is enabled in the config file, and I even know it works if you logon as root, I just want to get it working for me....

While this may sound like doom and gloom, I must say on the whole when I read the instructions carefully, I tend to find Linux/Unix easier to use than Windows, I suppose I've just got to engage brain before I point and click.....

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • If you generated your private key using puttygen, you can't use it for unix ssh clients. And you can only use the public key by cutting and pasting from puttygen to ~/.ssh/authorized_keys2.

    SSH File Formats are a nightmare. Everybody does them differently.

    -Dom

    • The Keys were generated by puttygen. I'm only using the PuTTY Private keys with PuTTY clients. The latest version can apparently export the keys in other formats, but I've not tried using them with OpenSSH on either Linux or Cygwin yet.

      What freaks me out is that the OpenSSH server on my Linux box at home (RH6), allows root to login with the keys but not me, from the same authorized_keys2 file! I can only assume it's something weird in the ownership of the files/folders, and my work systems (running an old

      --
      -- "It's not magic, it's work..."
    • Thanks everyone for the input, I'm even investigating Tortoise CVS.

      My problem has now been solved. I logged in via a console and manually started SSH in -d -d -d mode, swicthed to the Win box with the KVM swicth, started PuTTY and switched back. The problem was that my home directory was writable by "group", (there is only me and me as root on the box). I had incorrectly assumed that this was a problem with the ~/.ssh folder, but I misread, and it was my home directory. One little chmod and it's all fixe

      --
      -- "It's not magic, it's work..."
  • at http://www.tortoisecvs.org/ [tortoisecvs.org] -- it's got a simple SSH client builtin and IIRC instructions for Win32 SF users.