Re: Can't change user after login
Does the SSH server log say anything useful?
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
ubuntu@vps-9dea8e64:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.04
Release: 23.04
Codename: lunar
ubuntu@vps-9dea8e64:~$ hostnamectl
Static hostname: vps-9dea8e64
Icon name: computer-vm
Chassis: vm 🖴
Machine ID: 8510c1b80d5f4934826e8814fbfdad24
Boot ID: 4c4eb50da69c4ae4a87fa8a0aa03148a
Virtualization: kvm
Operating System: Ubuntu 23.04
Kernel: Linux 6.2.0-20-generic
Architecture: x86-64
Hardware Vendor: OpenStack Foundation
Hardware Model: OpenStack Nova
Firmware Version: 2:1.10.2-58953eb7
ubuntu@vps-9dea8e64:~$
root@ftpserver:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.04
Release: 23.04
Codename: lunar
root@ftpserver:~# hostnamectl
Static hostname: ftpserver
Icon name: computer-vm
Chassis: vm 🖴
Machine ID: f55b12f373884fc0bd3ed7b2cf0e3486
Boot ID: 5a71ea0f0a67466c8a79de05537b754b
Virtualization: kvm
Operating System: Ubuntu 23.04
Kernel: Linux 6.2.0-37-generic
Architecture: x86-64
Hardware Vendor: QEMU
Hardware Model: Standard PC _i440FX + PIIX, 1996_
Firmware Version: rel-1.16.1-0-g3208b098f51a-prebuilt.qemu.org
root@ftpserver:~#
sudo su -c /usr/lib/sftp-server
Cannot initialize SFTP protocol. Is the host running an SFTP server?