username

thomasliju
thomasliju used Ask the Experts™
on
in a sunsolaris machine

I logged in like this

nj09mhf0005[oracle:utildb] 3: ssh nj09mhf0362


what is the username here
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
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
Most Valuable Expert 2013
Top Expert 2013

Commented:
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.

Author

Commented:
I confused you with the command..

This is just the prompt

nj09mhf0005[oracle:utildb] 3:

From this what is the username:
Most Valuable Expert 2013
Top Expert 2013
Commented:
What appears in the prompt is not necessarily the username, because the prompt is configurable (PS1 variable).

Better run

whoami

or

echo $USER

Author

Commented:
yes it is absolutely correct.

Thank you.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial