Default User with SSH?


 
Thread Tools Search this Thread
Special Forums IP Networking Default User with SSH?
# 1  
Old 08-22-2012
Default User with SSH?

Hello All,

Hopefully I'm in the correct forum for this one...

I just had a pretty simple question about SSH.
When I ssh to a server normally I do "ssh user@ip_address". I noticed once by accident I forgot to enter the username
when I was entering the command and it still attempted to connect and still offered me a "Password" Prompt. I knew the root
Password for that server so I just gave that a try and it worked...

So my question is, is "root" ALWAYS the default username for SSH logins when you don't supply a username?
Also, I'm assuming that "root" would need to be allowed remote login before that would be the case..?

Any thoughts would be great.

Thanks in Advance,
Matt
# 2  
Old 08-22-2012
It isn't. It is usually the one you currently are. So if you are currently the user willi, you and ssh somewhere without specifying the user name, you will try to authenticate as willi.
This User Gave Thanks to zaxxon For This Post:
# 3  
Old 08-22-2012
Hey Zaxxon, thanks for the reply...

Ahhh... Yes that sort of sounds familiar, makes sense. Thanks for the Info!


Thanks Again,
Matt
# 4  
Old 08-22-2012
The default is the current username on the local UNIX box. And. Allowing root ssh is a bad thing in a high security environment. You can also get varying results with SSH protocol 1 and rhosts files, meaning some oddball user can log in as someone else.
# 5  
Old 08-22-2012
Hi,

The only time you should be allowed to login directly as root is when you have connected to the console device of the system.

Call me old fashioned if you like, but in the main this has been the rule for the last 30 years or so!

regards

Dave
# 6  
Old 08-23-2012
We must manage servers in awfully difficult-to-get-to places -- "summer road only, and only in a dry month, no cell service or other humans for miles" kind of difficult -- and though we avoid root access whenever possible it's still occasionally useful. Direct root access is disallowed, and only a few particular users are allowed to sudo to it. ssh keys have automated everything that needs to be.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Passwordless ssh for different user

Hello Folks, I lost touch in ssh key gen topics. I am in need of ssh to a server without password, kindly help me in configuring. I have two servers, server1 with user name apha & server1 with user name beta. I need to ssh to the server2 from server1 with respective users, Manually i... (3 Replies)
Discussion started by: Thala
3 Replies

2. HP-UX

Restrict ssh for particular user

Dear Concern, We want to restrict ssh for particular user "oracle". Our HP UX version is as below. Please advise. # uname -a HP-UX tabsdb02 B.11.31 U ia64 2963363594 unlimited-user license (2 Replies)
Discussion started by: makauser
2 Replies

3. Programming

Trying to ssh as another user and cd to directory

I can ssh to another directory by doing the following: for server in server1; do ssh -t $server1 "cd /tmp; 'ls'";done However, if I try to do it as another user it fails: I have tried: for server in server1 do dir=$(su - nbadaccount -c "ssh $server `cd '/tmp/TSTCON'` " ) pwd... (3 Replies)
Discussion started by: newbie2010
3 Replies

4. UNIX for Dummies Questions & Answers

SSH: don't specify a user

How can I tell ssh to ask for the username at the prompt instead of passing one in via the -l parameter or $username@$server on the command line? I know that when I connect to an ssh server via putty, if I don't specify a username when connecting, the ssh server will ask for the username. I'm... (1 Reply)
Discussion started by: dangral
1 Replies

5. UNIX for Advanced & Expert Users

ssh jail user

I have a developer that needs ssh access to a server to get to a specific directory. I want to restrict them to that directory. I've tried to set their shell as rksh which does jail them but only if they are using ssh from another unix system. If they are using putty or winscp they can still... (2 Replies)
Discussion started by: toor13
2 Replies

6. AIX

passwordless entry using ssh from one user to a different user on the same server

Hi, We have a requirement to do passwordless entry from one user to a different user on the same AIX server using ssh keys. Can some one help me with this? Thanks in advance, Panditt (3 Replies)
Discussion started by: deshaipet
3 Replies

7. Solaris

Cant ssh for a local user

Here is the log im pasting for verbose ssh: -bash-2.05b$ ssh -v qa_fnp@10.41.11.23 OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090701f debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Rhosts Authentication disabled, originating port will... (5 Replies)
Discussion started by: kirtikjr
5 Replies

8. Red Hat

Cannot ssh for a user

This is the entry when I tail /var/log/secure when I ssh for user "nightly"... Aug 4 03:19:48 itanium2 sshd: Illegal user nightly from ::ffff:10.91.220.35 Aug 4 03:20:10 itanium2 sshd: Failed password for illegal user nightly from ::ffff:10.91.220.35 port 32862 ssh2 What could be... (3 Replies)
Discussion started by: kirtikjr
3 Replies

9. Shell Programming and Scripting

Command for SSH with @ in User Name

I am trying to log into a server using SSH through the command line. I understand that the format is sftp -oPort=22 Username@Hostname. My issue is that my user name also has an @ symbol in it. Can someone tell me how I can get the system to not think that the last half of the user name as part... (9 Replies)
Discussion started by: davkatjenn
9 Replies

10. UNIX for Dummies Questions & Answers

change user> to user@host> ssh prompt

Hi, I was wondering how to change the prompt for my ssh login. At the moment it is like user> while I'd like it to be as user@host> It is in the .bash_profile or .ssh ??? Thanks (2 Replies)
Discussion started by: pmasterkim
2 Replies
Login or Register to Ask a Question