Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
07-22-2015, 11:50 PM
#1
Member
Registered: Sep 2012
Posts: 71
Rep:
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.
07-23-2015, 01:45 AM
#2
Moderator
Registered: May 2001
Posts: 29,415
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.
07-23-2015, 08:36 PM
#3
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,311
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 01:37 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News