Set up and use sshgate-server!
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 =
- [email protected] ... KO
- Permission denied (publickey,password).
+ Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
- [email protected] ... OK
- [email protected] ... KO
ssh: Could not resolve hostname sshgate.newshub.loc2: Name or service not known
@@ -137,4 +137,5 @@
. [email protected] ... 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 '[email protected]'. 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 [email protected]) without issue :
[root@sshgate tests]# ssh [email protected]
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.
[email protected]'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.
I can see the sshgate-configure script use relative path file and directories, and the load errors depends on where you place on the system when executing the command.