Hello,
I was testing the InstantSSH plugin on one of our servers and I notice that SSH was working perfectly but SFTP does not.
Software info: Ubuntu 14.04 LTS, I-mscp 1.1.18, InstantSSH 3.0.0
On /var/log/auth.log I see,
QuoteDisplay More
Dec 1 22:03:30 csrv3 sshd[1233]: error: Could not load host key: /etc/ssh/ssh_host_ed25519_key
Dec 1 22:03:42 csrv3 sshd[1233]: Accepted publickey for imscp_bogdan from 89.47.55.50 port 53600 ssh2: RSA 59:d8:df:77:80:41:28:2f:b4:82:6b:4d:67:e0:0a:7b
Dec 1 22:03:42 csrv3 sshd[1233]: pam_unix(sshd:session): session opened for user imscp_bogdan by (uid=0)
Dec 1 22:03:42 csrv3 systemd-logind[27581]: New session 37 of user vu2004.
Dec 1 22:03:42 csrv3 pam_chroot[1233]: session: reading config file (/etc/security/chroot.conf)
Dec 1 22:03:42 csrv3 pam_chroot[1233]: session: expanded path "/var/chroot/InstantSSH/shared_jail" -> "/var/chroot/InstantSSH/shared_jail"
Dec 1 22:03:42 csrv3 pam_chroot[1233]: session: found chroot_dir "/var/chroot/InstantSSH/shared_jail" for user "imscp_bogdan"
Dec 1 22:03:42 csrv3 pam_chroot[1233]: session: preparing to chroot()
Dec 1 22:03:42 csrv3 systemd-logind[27581]: Removed session 37.
Indeed, there is no /etc/ssh/ssh_host_ed25519_key file.
Later edit: I have fixed this by running manually "ssh-keygen -A" to regenerate the missing files.
WinSCP is saying,
"Cannot initialize SFTP protocol. Is the host running a SFTP server?, Server sent command exit status 127."
Could it be a bug or something like that? Any suggestions.