SSH Problem

4,031 views
Skip to first unread message

ABHISHEK PALIWAL

unread,
May 2, 2014, 1:41:37 AM5/2/14
to inside...@googlegroups.com
Hi Team

I have cross-compiled openssh for mips platform and when I am trying to run SSH command at the target board it shows the following message:

command is - $ssh
output - No user exists for uid 0

Any one please me suggest what is going wrong.


Regards,
Abhishek

Anil Kumar Pugalia

unread,
May 2, 2014, 2:03:02 AM5/2/14
to inside...@googlegroups.com
Give the complete ssh command.

Regards
Anil
Passion: http://sysplay.in (Playing with Systems)

ABHISHEK PALIWAL said the following on Friday 02 May 2014 11:11 AM:
--
You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ABHISHEK PALIWAL

unread,
May 2, 2014, 2:11:05 AM5/2/14
to inside...@googlegroups.com

there is no need to give full command even when we type ssh it should display usage of ssh.
but, when I gave

$ssh <ip>


the output is similar "No user exists for uid 0"


Regards,
Abhishek
--




Regards
Abhishek Paliwal

ABHISHEK PALIWAL

unread,
May 2, 2014, 2:18:10 AM5/2/14
to inside...@googlegroups.com
Hi Anil,

I have tried following combinations but output is same

$ssh

No user exists for uid 0
$ssh 192.168.1.228

No user exists for uid 0
$ssh -V

No user exists for uid 0
$ssh --help

No user exists for uid 0


Regards,
Abhishek

--




Regards
Abhishek Paliwal

A kiran Kumar

unread,
May 2, 2014, 2:33:54 AM5/2/14
to inside...@googlegroups.com
Abhishek,

Usually the format for SSH is  ssh  <userid>@<ip>

have you tried this format?.

ABHISHEK PALIWAL

unread,
May 2, 2014, 3:13:26 AM5/2/14
to inside...@googlegroups.com
Hi kiran,

Yes, I have tried it but error is same

$ssh ro...@192.168.1.228

No user exists for uid 0

following are the uid n groups available at my target board
$id
uid=0(root) gid=0(root) groups=0(root)
$

Amit Tomer

unread,
May 2, 2014, 3:18:01 AM5/2/14
to inside_linux
Could you try running ssh daemon in debug mode ?

ABHISHEK PALIWAL

unread,
May 2, 2014, 3:21:13 AM5/2/14
to inside...@googlegroups.com

i don't know how to run it in debug mode

Amit Tomer

unread,
May 2, 2014, 3:24:08 AM5/2/14
to inside_linux

ABHISHEK PALIWAL

unread,
May 2, 2014, 3:30:57 AM5/2/14
to inside...@googlegroups.com
Actually my simple question is

when we run ssh which is cross-compiled for x86 platform it will shows following:

$ssh
usage: ssh [-1246AaCfgkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]
           [-D [bind_address:]port] [-e escape_char] [-F configfile]
           [-i identity_file] [-L [bind_address:]port:host:hostport]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-R [bind_address:]port:host:hostport] [-S ctl_path]
           [-w local_tun[:remote_tun]] [user@]hostname [command]

But when I am trying the same for cross-compiled ssh for mips architecture it will shows following:
$ssh
No user exists for uid 0

why it doesn't show the usage of ssh same as x86 platform.

Regards,
Abhishek

manish(monu)

unread,
May 2, 2014, 5:09:06 AM5/2/14
to inside...@googlegroups.com
Hi Abhishek,

Is your sshd daemon running? Can u check the config file present in /etc/ssh/sshd_c
onfig?
Probably, it might not be running.

Thanks,
Manish

Anoop C

unread,
May 2, 2014, 5:14:23 AM5/2/14
to inside...@googlegroups.com
Just a thought. 
Does it mean that ssh is being run as uid 0 (root) and there is no root user in your rootfs, maybe you can check /etc/passwd.

ABHISHEK PALIWAL

unread,
May 2, 2014, 5:34:40 AM5/2/14
to inside...@googlegroups.com
following information stored in /etc/passwd file

root::0:0:root:/:/bin/ash

Vijay N. Majagaonkar

unread,
May 3, 2014, 1:47:34 PM5/3/14
to inside...@googlegroups.com
Yes, I have tried it but error is same

$ssh ro...@192.168.1.228

No user exists for uid 0

following are the uid n groups available at my target board
$id
uid=0(root) gid=0(root) groups=0(root)
$

Your id shows root but your prompt shows different 

root::0:0:root:/:/bin/ash

and this must be bash and not ash or it's just typo?

Anoop C

unread,
May 4, 2014, 8:26:35 AM5/4/14
to inside...@googlegroups.com
Ash is another compact shell.

ABHISHEK PALIWAL

unread,
May 5, 2014, 12:50:25 AM5/5/14
to inside...@googlegroups.com

its not a typo, i was just changed the prompt because of security purpose.


On Sat, May 3, 2014 at 11:17 PM, Vijay N. Majagaonkar <vijay.ma...@gmail.com> wrote:



--




Regards
Abhishek Paliwal
Reply all
Reply to author
Forward
0 new messages