username

in a sunsolaris machine

I logged in like this

nj09mhf0005[oracle:utildb] 3: ssh nj09mhf0362


what is the username here
thomaslijuAsked:
Who is Participating?
 
woolmilkporcCommented:
What appears in the prompt is not necessarily the username, because the prompt is configurable (PS1 variable).

Better run

whoami

or

echo $USER
0
 
Frosty555Commented:
Your question is a little confusing but I'm assuming that when you said:

nj09mhf0005[oracle:utildb] 3: ssh nj09mhf0362

Open in new window


The nj09mhf0005[oracle:utildb] 3: part was the console prompt, and you typed and executed the command ssh nj09mhf0362

In that case, you attempted to ssh into the nj09mhf0362 machine, and it will use whatever username was of the currently logged in user on your currently machine.

If you want to explicitly specify a user to login as on the remote machine, use a command like ssh someuser@nj09mhf0362
0
 
woolmilkporcCommented:
If no user is given on the commandline ssh uses the name of the user you're logged in as, here probably "oracle", but please verify with "whoami" or "echo $USER"

"nj09mhf0362" is the name of the target host, by the way.
0
 
thomaslijuAuthor Commented:
I confused you with the command..

This is just the prompt

nj09mhf0005[oracle:utildb] 3:

From this what is the username:
0
 
thomaslijuAuthor Commented:
yes it is absolutely correct.

Thank you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.