Skip to content

Set up and use sshgate-server! #37

@papiveron

Description

@papiveron

Hi all,

I've juste download, build a sshgate version 0.3 beta package, and install it. And I've broke into some few issues even before start using it. Below are questions I will pleased to be answered.

When I try to test my sshgate-server installation, I get a fail at the "target test" stage. Here is my test output :

    [root@sshgate tests]# ./test.sh all
    - Loading sshGate core ... OK
    - Setup sshGate data directory ... OK
    - Generate temporary test file ... OK
    - Generate temporary sshkey test file ... OK
    - Create and setup temporary Unix account ... OK
    - Reset temporary test file ... OK
    - Reset sshGate data directories ... OK
    - Generate usergroup tests ... OK
    - Launch usergroup tests ... OK
    - Reset temporary test file ... OK
    - Reset sshGate data directories ... OK
    - Generate user tests ... OK
    - Launch user tests ... OK
    - Reset temporary test file ... OK
    - Reset sshGate data directories ... OK
    - Generate access tests ... OK
    - Launch access tests ... OK
    - Reset temporary test file ... OK
    - Reset sshGate data directories ... OK
    - Generate target tests ... OK
    - Launch target tests ... Test Failed
    ==========================================================
    --- /tmp/test_sshgate_expected.2531008  2015-05-01 18:28:20.130000001 +0200
    +++ /tmp/test_sshgate_output.1675774694 2015-05-01 18:28:25.525000001 +0200
    @@ -43,7 +43,7 @@
     sshGate >  target ssh test all
     = Test all targets ssh connectivity =
     -  root@sshgate.newshub.loc  ... KO
    -     Permission denied (publickey,password).
    +     Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
     -  user2754308793@sshgate.newshub.loc  ... OK
     -  user2754308793@sshgate.newshub.loc2  ... KO
          ssh: Could not resolve hostname sshgate.newshub.loc2: Name or service not known
    @@ -137,4 +137,5 @@
     .  user2754308793@sshgate.newshub.loc  ... OK
     sshGate >  target add 192.168.1.100 with proxy sshgate.newshub.loc
     Use the sshGate default sshkey for this target host [Y] ?   Y
    +NOTICE: Public ssh key of '192.168.1.100' can't be installed on 'user2754308793@192.168.1.100'. Install it manually
     sshGate >  exit
    ==========================================================
    - Remove tests data ... OK

I understand why I get this error while, I can ssh connect to my localhost (ssh root@sshgate.newshub.loc) without issue :

    [root@sshgate tests]# ssh root@sshgate.newshub.loc
    The authenticity of host 'sshgate.newshub.loc (192.168.1.100)' can't be established.
    RSA key fingerprint is 75:a7:6e:74:3d:82:b2:d6:c1:10:e0:ce:71:37:35:91.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added 'sshgate.newshub.loc,192.168.1.100' (RSA) to the list of known hosts.
    root@sshgate.newshub.loc's password:
    Last login: Fri May  1 16:11:41 2015 from 192.168.1.13

Please can someone explain me what's going on here?

Also while installing the server, At the end stage they ask you to give the first and admin user name, I provided root. What is the purpose of this user in the system? Because befor this stage you're asked to give unix sshgate users account :

    Which unix account to use for sshGate users [sshgate] ?

Then what's the difference between this user account and the admin user account?
How to modify the sshgate admin user provided during the installion? In my case I did this :

    mv .opt/sshgate/users/root opt/sshgate/users/sshgate
    mv .opt/sshgate/users/root.properties opt/sshgate/users/sshgate.properties

I would also like to konw what the sshg command/tool is part of, cause I can't find it out on my system.

I also try to run sshgate-configure command to see how it behaves, and got this :

    [root@sshgate tests]# /opt/sshgate/bin/sshgate-configure
    ERROR: Unable to load ./bin/core/setup.func

So please can someone advise about my questions above, and tell me how to be sure sshgate-server is set and ready?

It will also be great to have a little sshgate commands documentation (how to add users, target, manage access list....) in the wiki.

Many thanks.

Kind Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions