Tried to ssh to my root user, faced problems

June 6, 2015 3.5k views
Ubuntu System Tools

Tried to SSH got this error

*** invalid open call: OCREAT without mode ***: sshd: root@pts/0 terminated
======= Backtrace: =========
/lib/x86
64-linux-gnu/libc.so.6(+0x7338f)[0x7f853deca38f]
/lib/x8664-linux-gnu/libc.so.6(fortifyfail+0x5c)[0x7f853df61c9c]
/lib/x8664-linux-gnu/libc.so.6(+0xeb68a)[0x7f853df4268a]
sshd: root@pts/0[0x41a1dd]
sshd: root@pts/0[0x41a5a9]
sshd: root@pts/0[0x41aa78]
sshd: root@pts/0[0x4094c3]
sshd: root@pts/0[0x40f794]
sshd: root@pts/0[0x410b9e]
sshd: root@pts/0[0x4112ec]
sshd: root@pts/0[0x4120b6]
sshd: root@pts/0[0x40b2cb]
sshd: root@pts/0[0x42af54]
sshd: root@pts/0[0x40c829]
sshd: root@pts/0[0x411a3f]
sshd: root@pts/0[0x405e56]
/lib/x86
64-linux-gnu/libc.so.6(_libcstartmain+0xf5)[0x7f853de78ec5]
sshd: root@pts/0[0x407752]
======= Memory map: ========
00400000-00448000 r-xp 00000000 fd:01 924808 /usr/sbin/sshd
00647000-00648000 r–p 00047000 fd:01 924808 /usr/sbin/sshd
00648000-00649000 rw-p 00048000 fd:01 924808 /usr/sbin/sshd
00649000-00750000 rw-p 00000000 00:00 0
00e85000-00ea6000 rw-p 00000000 00:00 0 [heap]
7f853cca0000-7f853ccb6000 r-xp 00000000 fd:01 393365 /lib/x86
64-linux-gnu/libgccs.so.1
7f853ccb6000-7f853ceb5000 —p 00016000 fd:01 393365 /lib/x86
64-linux-gnu/libgccs.so.1
7f853ceb5000-7f853ceb6000 rw-p 00015000 fd:01 393365 /lib/x86
64-linux-gnu/libgccs.so.1
7f853ceb6000-7f853cecd000 r-xp 00000000 fd:01 393241 /lib/x86
64-linux-gnu/libresolv-2.19.so
7f853cecd000-7f853d0cd000 —p 00017000 fd:01 393241 /lib/x8664-linux-gnu/libresolv-2.19.so
7f853d0cd000-7f853d0ce000 r–p 00017000 fd:01 393241 /lib/x86
64-linux-gnu/libresolv-2.19.so
7f853d0ce000-7f853d0cf000 rw-p 00018000 fd:01 393241 /lib/x8664-linux-gnu/libresolv-2.19.so
7f853d0cf000-7f853d0d1000 rw-p 00000000 00:00 0
7f853d0d1000-7f853d0d6000 r-xp 00000000 fd:01 393378 /lib/x86
64-linux-gnu/libnssdns-2.19.so
7f853d0d6000-7f853d2d5000 —p 00005000 fd:01 393378 /lib/x86
64-linux-gnu/libnssdns-2.19.so
7f853d2d5000-7f853d2d6000 r–p 00004000 fd:01 393378 /lib/x86
64-linux-gnu/libnssdns-2.19.so
7f853d2d6000-7f853d2d7000 rw-p 00005000 fd:01 393378 /lib/x86
64-linux-gnu/libnssdns-2.19.so
7f853d2d7000-7f853d417000 rw-s 00000000 00:04 67566 /dev/zero (deleted)
7f853d417000-7f853d422000 r-xp 00000000 fd:01 393326 /lib/x86
64-linux-gnu/libnssfiles-2.19.so
7f853d422000-7f853d621000 —p 0000b000 fd:01 393326 /lib/x86
64-linux-gnu/libnssfiles-2.19.so
7f853d621000-7f853d622000 r–p 0000a000 fd:01 393326 /lib/x86
64-linux-gnu/libnssfiles-2.19.so
7f853d622000-7f853d623000 rw-p 0000b000 fd:01 393326 /lib/x86
64-linux-gnu/libnssfiles-2.19.so
7f853d623000-7f853d62e000 r-xp 00000000 fd:01 410445 /lib/x86
64-linux-gnu/libnssnis-2.19.so
7f853d62e000-7f853d82d000 —p 0000b000 fd:01 410445 /lib/x86
64-linux-gnu/libnssnis-2.19.so
7f853d82d000-7f853d82e000 r–p 0000a000 fd:01 410445 /lib/x86
64-linux-gnu/libnssnis-2.19.so
7f853d82e000-7f853d82f000 rw-p 0000b000 fd:01 410445 /lib/x86
64-linux-gnu/libnssnis-2.19.so
7f853d82f000-7f853d846000 r-xp 00000000 fd:01 393589 /lib/x86
64-linux-gnu/libnsl-2.19.so
7f853d846000-7f853da45000 —p 00017000 fd:01 393589 /lib/x8664-linux-gnu/libnsl-2.19.so
7f853da45000-7f853da46000 r–p 00016000 fd:01 393589 /lib/x86
64-linux-gnu/libnsl-2.19.so
7f853da46000-7f853da47000 rw-p 00017000 fd:01 393589 /lib/x8664-linux-gnu/libnsl-2.19.so
7f853da47000-7f853da49000 rw-p 00000000 00:00 0
7f853da49000-7f853da52000 r-xp 00000000 fd:01 393583 /lib/x86
64-linux-gnu/libnsscompat-2.19.so
7f853da52000-7f853dc51000 —p 00009000 fd:01 393583 /lib/x86
64-linux-gnu/libnsscompat-2.19.so
7f853dc51000-7f853dc52000 r–p 00008000 fd:01 393583 /lib/x86
64-linux-gnu/libnsscompat-2.19.so
7f853dc52000-7f853dc53000 rw-p 00009000 fd:01 393583 /lib/x86
64-linux-gnu/libnsscompat-2.19.so
7f853dc53000-7f853dc56000 r-xp 00000000 fd:01 393395 /lib/x86
64-linux-gnu/libdl-2.19.so
7f853dc56000-7f853de55000 —p 00003000 fd:01 393395 /lib/x8664-linux-gnu/libdl-2.19.so
7f853de55000-7f853de56000 r–p 00002000 fd:01 393395 /lib/x86
64-linux-gnu/libdl-2.19.so
7f853de56000-7f853de57000 rw-p 00003000 fd:01 393395 /lib/x8664-linux-gnu/libdl-2.19.so
7f853de57000-7f853e012000 r-xp 00000000 fd:01 393625 /lib/x86
64-linux-gnu/libc-2.19.so
7f853e012000-7f853e211000 —p 001bb000 fd:01 393625 /lib/x8664-linux-gnu/libc-2.19.so
7f853e211000-7f853e215000 r–p 001ba000 fd:01 393625 /lib/x86
64-linux-gnu/libc-2.19.so
7f853e215000-7f853e217000 rw-p 001be000 fd:01 393625 /lib/x8664-linux-gnu/libc-2.19.so
7f853e217000-7f853e21c000 rw-p 00000000 00:00 0
7f853e21c000-7f853e225000 r-xp 00000000 fd:01 393415 /lib/x86
64-linux-gnu/libcrypt-2.19.so
7f853e225000-7f853e425000 —p 00009000 fd:01 393415 /lib/x8664-linux-gnu/libcrypt-2.19.so
7f853e425000-7f853e426000 r–p 00009000 fd:01 393415 /lib/x86
64-linux-gnu/libcrypt-2.19.so
7f853e426000-7f853e427000 rw-p 0000a000 fd:01 393415 /lib/x8664-linux-gnu/libcrypt-2.19.so
7f853e427000-7f853e455000 rw-p 00000000 00:00 0
7f853e455000-7f853e607000 r-xp 00000000 fd:01 393354 /lib/x86
64-linux-gnu/libcrypto.so.1.0.0
7f853e607000-7f853e806000 —p 001b2000 fd:01 393354 /lib/x8664-linux-gnu/libcrypto.so.1.0.0
7f853e806000-7f853e821000 r–p 001b1000 fd:01 393354 /lib/x86
64-linux-gnu/libcrypto.so.1.0.0
7f853e821000-7f853e82c000 rw-p 001cc000 fd:01 393354 /lib/x8664-linux-gnu/libcrypto.so.1.0.0
7f853e82c000-7f853e830000 rw-p 00000000 00:00 0
7f853e830000-7f853e848000 r-xp 00000000 fd:01 393502 /lib/x86
64-linux-gnu/libz.so.1.2.8
7f853e848000-7f853ea47000 —p 00018000 fd:01 393502 /lib/x8664-linux-gnu/libz.so.1.2.8
7f853ea47000-7f853ea48000 r–p 00017000 fd:01 393502 /lib/x86
64-linux-gnu/libz.so.1.2.8
7f853ea48000-7f853ea49000 rw-p 00018000 fd:01 393502 /lib/x8664-linux-gnu/libz.so.1.2.8
7f853ea49000-7f853ea4b000 r-xp 00000000 fd:01 393398 /lib/x86
64-linux-gnu/libutil-2.19.so
7f853ea4b000-7f853ec4a000 —p 00002000 fd:01 393398 /lib/x8664-linux-gnu/libutil-2.19.so
7f853ec4a000-7f853ec4b000 r–p 00001000 fd:01 393398 /lib/x86
64-linux-gnu/libutil-2.19.so
7f853ec4b000-7f853ec4c000 rw-p 00002000 fd:01 393398 /lib/x8664-linux-gnu/libutil-2.19.so
7f853ec4c000-7f853ec6f000 r-xp 00000000 fd:01 393595 /lib/x86
64-linux-gnu/ld-2.19.so
7f853ed11000-7f853ee51000 rw-s 00000000 00:04 67388 /dev/zero (deleted)
7f853ee61000-7f853ee66000 rw-p 00000000 00:00 0
7f853ee6b000-7f853ee6c000 rw-p 00000000 00:00 0
7f853ee6c000-7f853ee6e000 rw-p 00000000 00:00 0
7f853ee6e000-7f853ee6f000 r–p 00022000 fd:01 393595 /lib/x8664-linux-gnu/ld-2.19.so
7f853ee6f000-7f853ee70000 rw-p 00023000 fd:01 393595 /lib/x86
64-linux-gnu/ld-2.19.so
7f853ee70000-7f853ee71000 rw-p 00000000 00:00 0
7fff2a9eb000-7fff2aa0c000 rw-p 00000000 00:00 0 [stack]
7fff2abb1000-7fff2abb3000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]

1 comment
  • I’m facing the same issue. Tried to reinstall openssh-server but I’m still getting the same error.

3 Answers

I’m facing the same issue.
*** invalid open64 call: OCREAT without mode ***: sshd: root@pts/1 terminated
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(+0x68e4e)[0xb7420e4e]
/lib/i386-linux-gnu/libc.so.6(
fortifyfail+0x6b)[0xb74b385b]
/lib/i386-linux-gnu/libc.so.6(+0xda907)[0xb7492907]
sshd: root@pts/1[0x8061f07]
sshd: root@pts/1[0x806234a]
sshd: root@pts/1[0x8062840]
sshd: root@pts/1[0x80502ce]
sshd: root@pts/1[0x8056fef]
sshd: root@pts/1[0x80584a1]
sshd: root@pts/1[0x8058cce]
sshd: root@pts/1[0x80599ca]
sshd: root@pts/1[0x805250c]
sshd: root@pts/1[0x807391b]
sshd: root@pts/1[0x80529cc]
sshd: root@pts/1[0x8053beb]
sshd: root@pts/1[0x80592df]
sshd: root@pts/1[0x804c68a]
/lib/i386-linux-gnu/libc.so.6(_libcstartmain+0xf3)[0xb73d1a83]
sshd: root@pts/1[0x804e30c]
======= Memory map: ========
08048000-0808f000 r-xp 00000000 fd:01 131867 /usr/sbin/sshd
0808f000-08090000 r–p 00046000 fd:01 131867 /usr/sbin/sshd
08090000-08091000 rw-p 00047000 fd:01 131867 /usr/sbin/sshd
08091000-08155000 rw-p 00000000 00:00 0
08d8e000-08daf000 rw-p 00000000 00:00 0 [heap]
b70b1000-b70cd000 r-xp 00000000 fd:01 917508 /lib/i386-linux-gnu/libgcc
s.so.1
b70cd000-b70ce000 rw-p 0001b000 fd:01 917508 /lib/i386-linux-gnu/libgccs.so.1
b70ce000-b70e1000 r-xp 00000000 fd:01 917636 /lib/i386-linux-gnu/libresolv-2.19.so
b70e1000-b70e2000 —p 00013000 fd:01 917636 /lib/i386-linux-gnu/libresolv-2.19.so
b70e2000-b70e3000 r–p 00013000 fd:01 917636 /lib/i386-linux-gnu/libresolv-2.19.so
b70e3000-b70e4000 rw-p 00014000 fd:01 917636 /lib/i386-linux-gnu/libresolv-2.19.so
b70e4000-b70e6000 rw-p 00000000 00:00 0
b70e6000-b7226000 rw-s 00000000 00:04 13115050 /dev/zero (deleted)
b7226000-b7366000 rw-s 00000000 00:04 13114968 /dev/zero (deleted)
b736f000-b7374000 r-xp 00000000 fd:01 917590 /lib/i386-linux-gnu/libnss
dns-2.19.so
b7374000-b7375000 r–p 00004000 fd:01 917590 /lib/i386-linux-gnu/libnssdns-2.19.so
b7375000-b7376000 rw-p 00005000 fd:01 917590 /lib/i386-linux-gnu/libnss
dns-2.19.so
b7376000-b7381000 r-xp 00000000 fd:01 917640 /lib/i386-linux-gnu/libnssfiles-2.19.so
b7381000-b7382000 r–p 0000a000 fd:01 917640 /lib/i386-linux-gnu/libnss
files-2.19.so
b7382000-b7383000 rw-p 0000b000 fd:01 917640 /lib/i386-linux-gnu/libnssfiles-2.19.so
b7383000-b738d000 r-xp 00000000 fd:01 917565 /lib/i386-linux-gnu/libnss
nis-2.19.so
b738d000-b738e000 r–p 00009000 fd:01 917565 /lib/i386-linux-gnu/libnssnis-2.19.so
b738e000-b738f000 rw-p 0000a000 fd:01 917565 /lib/i386-linux-gnu/libnss
nis-2.19.so
b738f000-b73a4000 r-xp 00000000 fd:01 917566 /lib/i386-linux-gnu/libnsl-2.19.so
b73a4000-b73a5000 r–p 00015000 fd:01 917566 /lib/i386-linux-gnu/libnsl-2.19.so
b73a5000-b73a6000 rw-p 00016000 fd:01 917566 /lib/i386-linux-gnu/libnsl-2.19.so
b73a6000-b73a8000 rw-p 00000000 00:00 0
b73a8000-b73af000 r-xp 00000000 fd:01 917586 /lib/i386-linux-gnu/libnsscompat-2.19.so
b73af000-b73b0000 r–p 00006000 fd:01 917586 /lib/i386-linux-gnu/libnss
compat-2.19.so
b73b0000-b73b1000 rw-p 00007000 fd:01 917586 /lib/i386-linux-gnu/libnss_compat-2.19.so
b73b1000-b73b3000 rw-p 00000000 00:00 0
b73b3000-b73b6000 r-xp 00000000 fd:01 917543 /lib/i386-linux-gnu/libdl-2.19.so
b73b6000-b73b7000 r–p 00002000 fd:01 917543 /lib/i386-linux-gnu/libdl-2.19.so
b73b7000-b73b8000 rw-p 00003000 fd:01 917543 /lib/i386-linux-gnu/libdl-2.19.so
b73b8000-b7560000 r-xp 00000000 fd:01 917537 /lib/i386-linux-gnu/libc-2.19.so
b7560000-b7562000 r–p 001a8000 fd:01 917537 /lib/i386-linux-gnu/libc-2.19.so
b7562000-b7563000 rw-p 001aa000 fd:01 917537 /lib/i386-linux-gnu/libc-2.19.so
b7563000-b7566000 rw-p 00000000 00:00 0
b7566000-b756e000 r-xp 00000000 fd:01 917580 /lib/i386-linux-gnu/libcrypt-2.19.so
b756e000-b756f000 r–p 00008000 fd:01 917580 /lib/i386-linux-gnu/libcrypt-2.19.so
b756f000-b7570000 rw-p 00009000 fd:01 917580 /lib/i386-linux-gnu/libcrypt-2.19.so
b7570000-b7597000 rw-p 00000000 00:00 0
b7597000-b772b000 r-xp 00000000 fd:01 917507 /lib/i386-linux-gnu/libcrypto.so.1.0.0
b772b000-b773a000 r–p 00193000 fd:01 917507 /lib/i386-linux-gnu/libcrypto.so.1.0.0
b773a000-b7741000 rw-p 001a2000 fd:01 917507 /lib/i386-linux-gnu/libcrypto.so.1.0.0
b7741000-b7745000 rw-p 00000000 00:00 0
b7745000-b775d000 r-xp 00000000 fd:01 917645 /lib/i386-linux-gnu/libz.so.1.2.8
b775d000-b775e000 r–p 00017000 fd:01 917645 /lib/i386-linux-gnu/libz.so.1.2.8
b775e000-b775f000 rw-p 00018000 fd:01 917645 /lib/i386-linux-gnu/libz.so.1.2.8
b775f000-b7761000 r-xp 00000000 fd:01 918155 /lib/i386-linux-gnu/libutil-2.19.so
b7761000-b7762000 r–p 00001000 fd:01 918155 /lib/i386-linux-gnu/libutil-2.19.so
b7762000-b7763000 rw-p 00002000 fd:01 918155 /lib/i386-linux-gnu/libutil-2.19.so
b7768000-b7769000 rw-p 00000000 00:00 0
b7769000-b776b000 rw-p 00000000 00:00 0
b776b000-b776c000 r-xp 00000000 00:00 0 [vdso]
b776c000-b778c000 r-xp 00000000 fd:01 917551 /lib/i386-linux-gnu/ld-2.19.so
b778c000-b778d000 r–p 0001f000 fd:01 917551 /lib/i386-linux-gnu/ld-2.19.so
b778d000-b778e000 rw-p 00020000 fd:01 917551 /lib/i386-linux-gnu/ld-2.19.so
bf880000-bf8a1000 rw-p 00000000 00:00 0 [stack]

@aemamdouh @andyhaolly according to this StackOverflow post, they were able to fix it by following the instructions here. Give that a shot and let me know if it works! :)

  • I have tried, a week ago, but it doesn’t work, but after reboot the system, then I could login.
    the question is, the same problem occurs again, and I did nothing to the system

I have also encounter similar problem. Except that under “memory map” I got something like this:

08048000-0808f000 r-xp 00000000 fd:01 131867 /usr/sbin/sshd (deleted)
0808f000-08090000 r--p 00046000 fd:01 131867 /usr/sbin/sshd (deleted)
08090000-08091000 rw-p 00047000 fd:01 131867 /usr/sbin/sshd (deleted)

I have also read the StackOverflow post (reinstall openssh-server) mentioned by @kamaln7 before, and it didn’t solve my problem. However, after that, I decided to restart the whole VPS which solved my problem.

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!