Where to put ssh key files for NT SYSTEM account? (where is its HOME?) - SSH

This is a discussion on Where to put ssh key files for NT SYSTEM account? (where is its HOME?) - SSH ; I am using OpenSSH on a Windows NT4 system, client ssh (connecting to Digital UNIX server). As Administrator, I use "ssh-keygen -t rsa" to generate my key - it puts it in C:\WINNT\Profiles\Administrator\.ssh\id_rsa.pub, which I copy to the server system. ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: Where to put ssh key files for NT SYSTEM account? (where is its HOME?)

  1. Where to put ssh key files for NT SYSTEM account? (where is its HOME?)

    I am using OpenSSH on a Windows NT4 system, client ssh (connecting to
    Digital UNIX server).
    As Administrator, I use "ssh-keygen -t rsa" to generate my key - it
    puts it in C:\WINNT\Profiles\Administrator\.ssh\id_rsa.pub, which I
    copy to the server system.
    I can then do "ssh serveruser@serversystem" no problem.

    Now my problem is that I am updating some existing software that runs
    as a service on the NT box, running as the local System account. It
    used to do a CreateProcess("rsh...").

    I managed to create an ssh key file for the System account (using
    CreateProcess() to run ssh-keygen from within the software itself), but
    when I subsequently do CreateProcess("ssh...") it fails!

    I suspect I need to put the ssh key file in the correct location, but
    where it that for System account?! (I supplied a filename to
    ssh-keygen, which was created in C:\WINNT\system32).

    I tried creating C:\WINNT\Profiles\System\.ssh, and also created
    C:\WINNT\Profiles\Default user\.ssh, but putting the key file in here
    does not help?

    Any ideas?
    TIA
    Mark
    mark . bergman @ thales - is . com


  2. Re: Where to put ssh key files for NT SYSTEM account? (where is itsHOME?)

    Mister B wrote:
    > I am using OpenSSH on a Windows NT4 system, client ssh (connecting to
    > Digital UNIX server).
    > As Administrator, I use "ssh-keygen -t rsa" to generate my key - it
    > puts it in C:\WINNT\Profiles\Administrator\.ssh\id_rsa.pub, which I
    > copy to the server system.
    > I can then do "ssh serveruser@serversystem" no problem.
    >
    > Now my problem is that I am updating some existing software that runs
    > as a service on the NT box, running as the local System account. It
    > used to do a CreateProcess("rsh...").
    >
    > I managed to create an ssh key file for the System account (using
    > CreateProcess() to run ssh-keygen from within the software itself), but
    > when I subsequently do CreateProcess("ssh...") it fails!
    >
    > I suspect I need to put the ssh key file in the correct location, but
    > where it that for System account?! (I supplied a filename to
    > ssh-keygen, which was created in C:\WINNT\system32).
    >
    > I tried creating C:\WINNT\Profiles\System\.ssh, and also created
    > C:\WINNT\Profiles\Default user\.ssh, but putting the key file in here
    > does not help?
    >
    > Any ideas?
    > TIA
    > Mark
    > mark . bergman @ thales - is . com
    >


    Which OpenSSH package did you install? I know of at least two (COPssh
    and SSH Windows) and they both look for it in different places.

    Can you open a bash shell from the system account? If so, find out where
    $HOME points and put it under $HOME/.ssh/


    --
    To reply by email remove "_nospam"

  3. Re: Where to put ssh key files for NT SYSTEM account? (where is its HOME?)


    Chuck wrote:
    > Mister B wrote:
    > > I suspect I need to put the ssh key file in the correct location, but
    > > where it that for System account?!


    > Which OpenSSH package did you install?


    I got from www.sshwindows.sourceforge.net (several months ago)

    > Can you open a bash shell from the system account?


    Any idea how I would do that easily?

    Thanks
    Mark
    mark . bergman @ thales - is . com


  4. Re: Where to put ssh key files for NT SYSTEM account? (where is its HOME?)


    Chuck wrote:
    > Mister B wrote:
    > > I suspect I need to put the ssh key file in the correct location, but
    > > where it that for System account?! (


    > Which OpenSSH package did you install? I


    I got it from www.sshwindows.sourceforge.net (several months ago)

    > Can you open a bash shell from the system account?


    Do you happen to know an easy way to do that?

    Thanks
    Mark
    mark . bergman @ thales - is . com


  5. Re: Where to put ssh key files for NT SYSTEM account? (where is its HOME?)


    Chuck wrote:
    > Mister B wrote:
    > > I suspect I need to put the ssh key file in the correct location, but
    > > where it that for System account?!


    Well, I've solved my problem.
    I found a tip to use AT /INTERACTIVE to run a command window (CMD.EXE)
    as the Local System Account.
    ssh-keygen suggested a default location of /.ssh/id_rsa - when I used
    that it created the files somewhere, but I couldn't see then in the
    filesystem with Explorer Find! (I know they were actually created,
    because when I ran ssh-keygen again, it asked me if I wanted to
    overwrite the previous file!)
    Anyway, I used ssh-keygen again, and just specified my own location
    (new Profiles\system directory).
    After copying the public file to the remote system, I told ssh to use
    these key files ("-i" option), and Hey Presto, it worked!


    > Can you open a bash shell from the system account? If so, find out where
    > $HOME points and put it under $HOME/.ssh/


    When I ran bash from the above command window, it said $HOME is
    undefined, and accordingly refused to do a plain "cd".

    Thanks anyway for your help
    Mark
    mark . bergman @ thales - is . com


+ Reply to Thread