6

I am performing a do-release-upgrade from a fresh install of Ubuntu 16.04 to 18.04 on a VM.

After the upgrade I could no longer access via port 22. Trying again I installed drop bear prior to performing the upgrade and set that to port 2222, this worked.

Now trying to bring sshd back online with sudo /usr/sbin/sshd -D -d I get the following when trying to connect:

root@server:/etc/ssh# sudo /usr/sbin/sshd -D -d
sudo: getrlimit: Function not implemented
sudo: setrlimit: Function not implemented
sudo: setrlimit: Function not implemented
sudo: getrlimit: Function not implemented
sudo: setrlimit: Function not implemented
sudo: setrlimit: Function not implemented
debug1: sshd version OpenSSH_7.6, OpenSSL 1.0.2n  7 Dec 2017
debug1: private host key #0: ssh-rsa SHA256:tcrXf+XQwDjGFkl7trXSgNjzu1ldhoYUHrejxPnHFdg
debug1: private host key #1: ecdsa-sha2-nistp256 SHA256:LM2oV2f0unkLP3vt7JB0ebWJsIAPXV1bhc6N1hg0nNk
debug1: private host key #2: ssh-ed25519 SHA256:9Dn7XT7NwOx3Kq8kXgBYdFB269peNXi4uKfYHQVQl7g
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-D'
debug1: rexec_argv[2]='-d'
debug1: Set /proc/self/oom_score_adj from 0 to -1000
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
debug1: Bind to port 22 on ::.
Server listening on :: port 22.
debug1: Server will not fork when running in debugging mode.
debug1: rexec start in 5 out 5 newsock 5 pipe -1 sock 8
debug1: inetd sockets after dupping: 3, 3
Connection from 2.101.140.XXX port 55969 on 50.30.47.YYY port 22
debug1: Client protocol version 2.0; client software version PuTTY_Release_0.63
debug1: match: PuTTY_Release_0.63 pat PuTTY_Local:*,PuTTY-Release-0.5*,PuTTY_Release_0.5*,PuTTY_Release_0.60*,PuTTY_Release_0.61*,PuTTY_Release_0.62*,PuTTY_Release_0.63*,PuTTY_Release_0.64* compat 0x00004000
debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4
debug1: permanently_set_uid: 110/65534 [preauth]
ssh_sandbox_child: setrlimit(RLIMIT_FSIZE, { 0, 0 }): Function not implemented [preauth]
debug1: do_cleanup [preauth]
debug1: monitor_read_log: child log fd closed
debug1: do_cleanup
debug1: Killing privsep child 2819
debug1: audit_event: unhandled event 12

Also if I try to sudo I get similar errors:

root@server:/etc/ssh# sudo date
sudo: getrlimit: Function not implemented
sudo: setrlimit: Function not implemented
sudo: setrlimit: Function not implemented
sudo: getrlimit: Function not implemented
sudo: setrlimit: Function not implemented
sudo: setrlimit: Function not implemented
Wed Aug 15 15:26:54 UTC 2018

How do I fixed this ssh_sandbox_child: setrlimit(RLIMIT_FSIZE, { 0, 0 }): Function not implemented [preauth]?

user160190
  • 63
  • 4
  • Was the upgrade actually successful? This suggests to me that something went terribly wrong. Please run `apt install -f` to see if it can fix any problems. – Michael Hampton Aug 15 '18 at 15:53
  • Install worked perfectly (AFAIK), no errors, apt-get install -f ```0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.``` – user160190 Aug 15 '18 at 18:53
  • What kernel version are you running on this system? I had exactly the same symptoms in a container with an old kernel version (though I cannot say whether it was really caused by the old kernel). – Philipp Wendler Dec 12 '18 at 19:03

0 Answers0