Solved

username

Posted on 2014-02-25
5
105 Views
Last Modified: 2014-10-15
in a sunsolaris machine

I logged in like this

nj09mhf0005[oracle:utildb] 3: ssh nj09mhf0362


what is the username here
0
Comment
Question by:thomasliju
  • 2
  • 2
5 Comments
 
LVL 31

Expert Comment

by:Frosty555
Comment Utility
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
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
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
 

Author Comment

by:thomasliju
Comment Utility
I confused you with the command..

This is just the prompt

nj09mhf0005[oracle:utildb] 3:

From this what is the username:
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
Comment Utility
What appears in the prompt is not necessarily the username, because the prompt is configurable (PS1 variable).

Better run

whoami

or

echo $USER
0
 

Author Closing Comment

by:thomasliju
Comment Utility
yes it is absolutely correct.

Thank you.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now