1

Topic: Cannot log in ssh after install

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? download
- Linux/BSD distribution name and version: Debian 9.8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? I hope
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I complete install of the iRedMail, but cannot log in ssh after completion.
It can access only via VPS console.

$ ssh root@<server>
Long wait...
ssh: connect to host <server> port 22: Connection timed out

Please teach solution.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Cannot log in ssh after install

Check your netplan-config under /etc/netplan/01-...conf

Had the same problem. Maybe iRed is changing something when the installation is done.

Greets

3

Re: Cannot log in ssh after install

Thank you for a quick reply.
Netplan is not on the server.

4

Re: Cannot log in ssh after install

HAve you alreday checked your /etc/network/interfaces?

5

Re: Cannot log in ssh after install

- Is ssh service running? Run command "netstat -ntlp | grep 22" to check.
- Check iptables firewall rules (command "iptables -L -n"), is your IP blocked? Stop "iptables" service and try ssh login again.

6

Re: Cannot log in ssh after install

mike175de wrote:

HAve you alreday checked your /etc/network/interfaces?

Yes.

ZhangHuangbin wrote:

- Is ssh service running? Run command "netstat -ntlp | grep 22" to check.
- Check iptables firewall rules (command "iptables -L -n"), is your IP blocked? Stop "iptables" service and try ssh login again.

- "-bash: netstat: command not found"
- I reviewed it but I do not understand it much.

"systemctl stop iptables"

You can read "Failed to start iptables.service: Unit iptables.service not found."

But when I started, I got a comment saying "Failed to start iptables.service: Unit iptables.service not found."

7

Re: Cannot log in ssh after install

テクニカル諏訪子 wrote:

- "-bash: netstat: command not found"

OK, run "ss -ntlp | grep 22" instead. Is ssh service running on port 22?

テクニカル諏訪子 wrote:

But when I started, I got a comment saying "Failed to start iptables.service: Unit iptables.service not found."

- Did you choose to install the firewall rules shipped by iRedMail during iRedMail installation? if not, then no iptables service (but you still have "iptables" package and command).

- Do you use "ufw" to manage firewall?

8

Re: Cannot log in ssh after install

https://i.imgur.com/kg3tlQ4.png
Since it is not copied from the console, I made a squash

I installed it but I reinstalled the server and did not install the firewall. There is no application called "ufw"

9

Re: Cannot log in ssh after install

ok, is ssh access ok now after the reinstallation?

10

Re: Cannot log in ssh after install

I can, but I can not access it again after installing iRedMail

11

Re: Cannot log in ssh after install

After finding the problem by myself, I finally fixed it!

12

Re: Cannot log in ssh after install

What's the root cause?

13

Re: Cannot log in ssh after install

Have the same problem, with the added complication that i have no console access, since I am running the server on an AWS EC2 instance. Have to scrap the server (again) and start the install again.