NS8-OpenSSH app

Module: Latest 1.0.2

@mrmarkuz after installing and configuring ns8-openssh the configuarion page returns back with an empty password field, so there is no way to recover the password?

So once installed, from a remote location, what do I need to do use the new ssh method?

TIA

1 Like

Yes, the password isn’t shown anymore as a security feature. Just enter a new password to change it.
If you really need to recover it, it’s saved in the environment file:

[root@node1 ~]# runagent -m openssh1 grep PASSWORD environment
PASSWORD=Secret123

It should be used automatically. So you shouldn’t get a warning on the Mac anymore when connecting to the OpenSSH container.

1 Like

It’s me, but I fail to understand. Normally I login remotely e.g. “ssh root@myserver.com -p 11111”…

If I login like I always do, the message is still there…

Sorry!

1 Like

Are you really connecting to the OpenSSH container or still to the host system OpenSSH?

On the settings page you can get the right TCP port to connect to:

ssh root@myserver.com -p 20010

Gotcha!

Some more questions:

  1. I am now in the ns8-openssh container, how to access the host like normal (sudo? how?)
  2. Can I disable the original ssh server completely or block external access, e.g. improve security? (extra setting switch on/off?)
  3. Can the external TCP Port be set?

TIA!

The NS8 host is reachable under IP 10.0.0.1.

ssh user@10.0.0.1

See also GitHub - mrmarkuz/ns8-openssh: OpenSSH server · GitHub

The original SSH server is needed to connect to it but you could remove the firewall port, so it’s not accessible from public anymore.

firewall-cmd --permanent --service=ssh --remove-port=22/tcp
firewall-cmd --reload
1 Like

Yep, thanks!

Exactly, maybe worthwhile to add this to the readme?

I edited my previous questions and added, can the TCP port be set in settings opposed to predefined?

Many thanks!

1 Like

Done.

NS8 provides free ports to the apps and my intention was to avoid port conflicts but I’m thinking about it…

1 Like

Many thanks!

1 Like