LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 07-23-2015, 12:50 AM   #1
kohshan99
Member
 
Registered: Sep 2012
Posts: 50

Rep: Reputation: Disabled
Question 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.
 
Old 07-23-2015, 02:45 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531
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.
 
Old 07-23-2015, 09:36 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,358
Blog Entries: 12

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


Reply

Tags
ssh access, ssh localhost remote, ubuntu 12.04


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add user with root privileges and SSH access filmon Linux - Newbie 6 11-02-2010 01:35 PM
How to create SSH user without access to root directory victorsk Linux - Networking 1 08-07-2009 07:56 PM
How to add user with root privileges and SSH access adamrad Linux - General 8 10-31-2006 03:53 PM
ssh access allowed only to root user? zovres Linux - Newbie 5 09-25-2003 05:19 PM


All times are GMT -5. The time now is 03:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration