Solved

username

Posted on 2014-02-25
5
109 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
ID: 39886741
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
ID: 39886747
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
ID: 39886829
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
ID: 39886956
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
ID: 40383692
yes it is absolutely correct.

Thank you.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

825 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