C
cb000
Guest
Hi, I am new to this forum.
In FreeBSD 12.3 Jail, I can easily to activate SSH server my the following command:
After that, I import my public key to user and I can use SSH / SFTP to connect to the Jail.
However, in FreeBSD 12.4, my steps can only make SSH works. It does not make SFTP to work.
In WinSCP, it show the following error message (I deleted the SSH part):
WinSCP Error Log
Error in Jail /var/log/messages
Host: TrueNAS 12.0U8.1 (FreeBSD 12.2-RELEASE-p14)
Jail: FreeBSD 12.4-RELEASE-p3
In FreeBSD 12.3 Jail, I can easily to activate SSH server my the following command:
sysrc sshd_enable=YES && \
service sshd start
After that, I import my public key to user and I can use SSH / SFTP to connect to the Jail.
However, in FreeBSD 12.4, my steps can only make SSH works. It does not make SFTP to work.
In WinSCP, it show the following error message (I deleted the SSH part):
WinSCP Error Log
Code:
. 2023-06-26 03:06:13.862 --------------------------------------------------------------------------
. 2023-06-26 03:06:13.863 Using SFTP protocol.
. 2023-06-26 03:06:13.863 Doing startup conversation with host.
. 2023-06-26 03:06:13.863 Session upkeep
. 2023-06-26 03:06:13.863 Looking for network events
. 2023-06-26 03:06:13.863 Detected network event
. 2023-06-26 03:06:13.863 Enumerating network events for socket 1888
. 2023-06-26 03:06:13.863 Enumerated 1 network events making 1 cumulative events for socket 1888
. 2023-06-26 03:06:13.863 Handling network read event on socket 1888 with error 0
> 2023-06-26 03:06:13.878 Type: SSH_FXP_INIT, Size: 5, Number: -1
> 2023-06-26 03:06:13.878 01,00,00,00,06,
. 2023-06-26 03:06:13.878 Sent 9 bytes
. 2023-06-26 03:06:13.878 There are 0 bytes remaining in the send buffer
. 2023-06-26 03:06:13.878 Looking for network events
. 2023-06-26 03:06:13.878 Timeout waiting for network events
. 2023-06-26 03:06:13.878 Waiting for another 4 bytes
. 2023-06-26 03:06:13.878 Looking for incoming data
. 2023-06-26 03:06:13.878 Looking for network events
. 2023-06-26 03:06:13.878 Session sent command exit status 255
. 2023-06-26 03:06:13.878 Main session channel closed
. 2023-06-26 03:06:13.878 All channels closed
. 2023-06-26 03:06:13.878 Timeout waiting for network events
. 2023-06-26 03:06:13.878 Waiting for another 4 bytes
. 2023-06-26 03:06:13.878 Looking for incoming data
. 2023-06-26 03:06:13.878 Looking for network events
. 2023-06-26 03:06:13.878 Attempt to close connection due to fatal exception:
* 2023-06-26 03:06:13.878 **Connection has been unexpectedly closed.** Server sent command exit status 255.
. 2023-06-26 03:06:13.878 Closing connection.
. 2023-06-26 03:06:13.878 Selecting events 0 for socket 1888
* 2023-06-26 03:06:13.907 (EFatal) **Connection has been unexpectedly closed.** Server sent command exit status 255.
* 2023-06-26 03:06:13.907 Cannot initialize SFTP protocol. Is the host running an SFTP server?
Code:
Jun 25 18:06:13 testjail sftp-server[48037]: fatal: unable to make the process untraceable: No such process
Host: TrueNAS 12.0U8.1 (FreeBSD 12.2-RELEASE-p14)
Jail: FreeBSD 12.4-RELEASE-p3