LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   root user can't access server using ssh. (https://www.linuxquestions.org/questions/linux-newbie-8/root-user-cant-access-server-using-ssh-4175548702/)

kohshan99 07-22-2015 11:50 PM

root user can't access server using ssh.
 
i'm using ubuntu 12.04LTS 64Bit. but i can't login through root ssh. i can logged in using normal user but root user can't logged me in.. i got this mgs

Quote:

root@iptv:~# ssh root@199.225.220.163
root@199.225.220.163's password:
*** invalid open call: O_CREAT without mode ***: sshd: root@pts/3 terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7fc8850cde57]
/lib/x86_64-linux-gnu/libc.so.6(+0xeaea1)[0x7fc8850aeea1]
sshd: root@pts/3[0x41a542]
sshd: root@pts/3[0x41a9eb]
sshd: root@pts/3[0x41aeb8]
sshd: root@pts/3[0x409630]
sshd: root@pts/3[0x40f9ed]
sshd: root@pts/3[0x410dd6]
sshd: root@pts/3[0x411994]
sshd: root@pts/3[0x411f16]
sshd: root@pts/3[0x40b253]
sshd: root@pts/3[0x42be24]
sshd: root@pts/3[0x40c9cb]
sshd: root@pts/3[0x412199]
sshd: root@pts/3[0x4061a2]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7fc884fe576d]
sshd: root@pts/3[0x407635]
======= Memory map: ========
00400000-00448000 r-xp 00000000 08:01 2233049 /usr/sb in/sshd
00647000-00648000 r--p 00047000 08:01 2233049 /usr/sb in/sshd
00648000-00649000 rw-p 00048000 08:01 2233049 /usr/sb in/sshd
00649000-00750000 rw-p 00000000 00:00 0
00f8e000-00faf000 rw-p 00000000 00:00 0 [heap]
7fc883c07000-7fc883c1c000 r-xp 00000000 08:01 2887629 /lib/x8 6_64-linux-gnu/libgcc_s.so.1
7fc883c1c000-7fc883e1b000 ---p 00015000 08:01 2887629 /lib/x8 6_64-linux-gnu/libgcc_s.so.1
7fc883e1b000-7fc883e1c000 r--p 00014000 08:01 2887629 /lib/x8 6_64-linux-gnu/libgcc_s.so.1
7fc883e1c000-7fc883e1d000 rw-p 00015000 08:01 2887629 /lib/x8 6_64-linux-gnu/libgcc_s.so.1
7fc883e1d000-7fc883e35000 r-xp 00000000 08:01 2889114 /lib/x8 6_64-linux-gnu/libresolv-2.15.so
7fc883e35000-7fc884035000 ---p 00018000 08:01 2889114 /lib/x8 6_64-linux-gnu/libresolv-2.15.so
7fc884035000-7fc884036000 r--p 00018000 08:01 2889114 /lib/x8 6_64-linux-gnu/libresolv-2.15.so
7fc884036000-7fc884037000 rw-p 00019000 08:01 2889114 /lib/x8 6_64-linux-gnu/libresolv-2.15.so
7fc884037000-7fc884039000 rw-p 00000000 00:00 0
7fc884039000-7fc884040000 r-xp 00000000 08:01 2889103 /lib/x8 6_64-linux-gnu/libnss_dns-2.15.so
7fc884040000-7fc88423f000 ---p 00007000 08:01 2889103 /lib/x8 6_64-linux-gnu/libnss_dns-2.15.so
7fc88423f000-7fc884240000 r--p 00006000 08:01 2889103 /lib/x8 6_64-linux-gnu/libnss_dns-2.15.so
7fc884240000-7fc884241000 rw-p 00007000 08:01 2889103 /lib/x8 6_64-linux-gnu/libnss_dns-2.15.so
7fc884241000-7fc884243000 r-xp 00000000 08:01 2883637 /lib/li bnss_mdns4_minimal.so.2
7fc884243000-7fc884442000 ---p 00002000 08:01 2883637 /lib/li bnss_mdns4_minimal.so.2
7fc884442000-7fc884443000 r--p 00001000 08:01 2883637 /lib/li bnss_mdns4_minimal.so.2
7fc884443000-7fc884444000 rw-p 00002000 08:01 2883637 /lib/li bnss_mdns4_minimal.so.2
7fc884444000-7fc884584000 rw-s 00000000 00:04 920276 /dev/ze ro (deleted)
7fc884584000-7fc884590000 r-xp 00000000 08:01 2889109 /lib/x8 6_64-linux-gnu/libnss_files-2.15.so
7fc884590000-7fc88478f000 ---p 0000c000 08:01 2889109 /lib/x8 6_64-linux-gnu/libnss_files-2.15.so
7fc88478f000-7fc884790000 r--p 0000b000 08:01 2889109 /lib/x8 6_64-linux-gnu/libnss_files-2.15.so
7fc884790000-7fc884791000 rw-p 0000c000 08:01 2889109 /lib/x8 6_64-linux-gnu/libnss_files-2.15.so
7fc884791000-7fc88479b000 r-xp 00000000 08:01 2884470 /lib/x8 6_64-linux-gnu/libnss_nis-2.15.so
7fc88479b000-7fc88499b000 ---p 0000a000 08:01 2884470 /lib/x8 6_64-linux-gnu/libnss_nis-2.15.so
7fc88499b000-7fc88499c000 r--p 0000a000 08:01 2884470 /lib/x8 6_64-linux-gnu/libnss_nis-2.15.so
7fc88499c000-7fc88499d000 rw-p 0000b000 08:01 2884470 /lib/x8 6_64-linux-gnu/libnss_nis-2.15.so
7fc88499d000-7fc8849b4000 r-xp 00000000 08:01 2889118 /lib/x8 6_64-linux-gnu/libnsl-2.15.so
7fc8849b4000-7fc884bb3000 ---p 00017000 08:01 2889118 /lib/x8 6_64-linux-gnu/libnsl-2.15.so
7fc884bb3000-7fc884bb4000 r--p 00016000 08:01 2889118 /lib/x8 6_64-linux-gnu/libnsl-2.15.so
7fc884bb4000-7fc884bb5000 rw-p 00017000 08:01 2889118 /lib/x8 6_64-linux-gnu/libnsl-2.15.so
7fc884bb5000-7fc884bb7000 rw-p 00000000 00:00 0
7fc884bb7000-7fc884bbf000 r-xp 00000000 08:01 2889119 /lib/x8 6_64-linux-gnu/libnss_compat-2.15.so
7fc884bbf000-7fc884dbe000 ---p 00008000 08:01 2889119 /lib/x8 6_64-linux-gnu/libnss_compat-2.15.so
7fc884dbe000-7fc884dbf000 r--p 00007000 08:01 2889119 /lib/x8 6_64-linux-gnu/libnss_compat-2.15.so
7fc884dbf000-7fc884dc0000 rw-p 00008000 08:01 2889119 /lib/x8 6_64-linux-gnu/libnss_compat-2.15.so
7fc884dc0000-7fc884dc2000 r-xp 00000000 08:01 2889121 /lib/x8 6_64-linux-gnu/libdl-2.15.so
7fc884dc2000-7fc884fc2000 ---p 00002000 08:01 2889121 /lib/x8 6_64-linux-gnu/libdl-2.15.so
7fc884fc2000-7fc884fc3000 r--p 00002000 08:01 2889121 /lib/x8 6_64-linux-gnu/libdl-2.15.so
7fc884fc3000-7fc884fc4000 rw-p 00003000 08:01 2889121 /lib/x8 6_64-linux-gnu/libdl-2.15.so
7fc884fc4000-7fc885178000 r-xp 00000000 08:01 2889117 /lib/x8 6_64-linux-gnu/libc-2.15.so
7fc885178000-7fc885377000 ---p 001b4000 08:01 2889117 /lib/x8 6_64-linux-gnu/libc-2.15.so
7fc885377000-7fc88537b000 r--p 001b3000 08:01 2889117 /lib/x8 6_64-linux-gnu/libc-2.15.so
7fc88537b000-7fc88537d000 rw-p 001b7000 08:01 2889117 /lib/x8 6_64-linux-gnu/libc-2.15.so
7fc88537d000-7fc885382000 rw-p 00000000 00:00 0
7fc885382000-7fc88538b000 r-xp 00000000 08:01 2889101 /lib/x8 6_64-linux-gnu/libcrypt-2.15.so
7fc88538b000-7fc88558b000 ---p 00009000 08:01 2889101 /lib/x8 6_64-linux-gnu/libcrypt-2.15.so
7fc88558b000-7fc88558c000 r--p 00009000 08:01 2889101 /lib/x8 6_64-linux-gnu/libcrypt-2.15.so
7fc88558c000-7fc88558d000 rw-p 0000a000 08:01 2889101 /lib/x8 6_64-linux-gnu/libcrypt-2.15.so
7fc88558d000-7fc8855bb000 rw-p 00000000 00:00 0
7fc8855bb000-7fc88576d000 r-xp 00000000 08:01 2886217 /lib/x8 6_64-linux-gnu/libcrypto.so.1.0.0
7fc88576d000-7fc88596c000 ---p 001b2000 08:01 2886217 /lib/x8 6_64-linux-gnu/libcrypto.so.1.0.0
7fc88596c000-7fc885987000 r--p 001b1000 08:01 2886217 /lib/x8 6_64-linux-gnu/libcrypto.so.1.0.0
7fc885987000-7fc885992000 rw-p 001cc000 08:01 2886217 /lib/x8 6_64-linux-gnu/libcrypto.so.1.0.0
7fc885992000-7fc885996000 rw-p 00000000 00:00 0
7fc885996000-7fc8859ac000 r-xp 00000000 08:01 2887719 /lib/x8 6_64-linux-gnu/libz.so.1.2.3.4
7fc8859ac000-7fc885bab000 ---p 00016000 08:01 2887719 /lib/x8 6_64-linux-gnu/libz.so.1.2.3.4
7fc885bab000-7fc885bac000 r--p 00015000 08:01 2887719 /lib/x8 6_64-linux-gnu/libz.so.1.2.3.4
7fc885bac000-7fc885bad000 rw-p 00016000 08:01 2887719 /lib/x8 6_64-linux-gnu/libz.so.1.2.3.4
7fc885bad000-7fc885baf000 r-xp 00000000 08:01 2889102 /lib/x8 6_64-linux-gnu/libutil-2.15.so
7fc885baf000-7fc885dae000 ---p 00002000 08:01 2889102 /lib/x8 6_64-linux-gnu/libutil-2.15.so
7fc885dae000-7fc885daf000 r--p 00001000 08:01 2889102 /lib/x8 6_64-linux-gnu/libutil-2.15.so
7fc885daf000-7fc885db0000 rw-p 00002000 08:01 2889102 /lib/x8 6_64-linux-gnu/libutil-2.15.so
7fc885db0000-7fc885dd2000 r-xp 00000000 08:01 2889110 /lib/x8 6_64-linux-gnu/ld-2.15.so
7fc885e7b000-7fc885fbb000 rw-s 00000000 00:04 919502 /dev/ze ro (deleted)
7fc885fbb000-7fc885fc0000 rw-p 00000000 00:00 0
7fc885fcf000-7fc885fd0000 rw-p 00000000 00:00 0
7fc885fd0000-7fc885fd2000 rw-p 00000000 00:00 0
7fc885fd2000-7fc885fd3000 r--p 00022000 08:01 2889110 /lib/x8 6_64-linux-gnu/ld-2.15.so
7fc885fd3000-7fc885fd5000 rw-p 00023000 08:01 2889110 /lib/x8 6_64-linux-gnu/ld-2.15.so
7fffffc05000-7fffffc26000 rw-p 00000000 00:00 0 [stack]
7fffffceb000-7fffffced000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsysca ll]
Connection to 199.225.220.163 closed.
only problem with root login.

unSpawn 07-23-2015 01:45 AM

You're using password auth which is plainly wrong.
Don't log in as root over any network.
Adhere to SSH Best Practices:
- always use pubkey auth,
- log in as unprivileged user,
- protect your ssh service.

frankbell 07-23-2015 08:36 PM

Many distros and almost all server admins disable root access via ssh. http://askubuntu.com/questions/51183...ssh-in-as-root


All times are GMT -5. The time now is 05:06 PM.