Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

'adduser' cannot login via SSH?

FreekFreek Member
edited December 2012 in Help

I added an user via the 'adduser' command but it cannot login via SSH..? When I try to login over SSH it keeps saying that the password is wrong. This is on Ubuntu Server 12.04

PS. Adding 'AllowUsers USERNAME' to /etc/ssh/sshd_config is a bad bad idea.. Was unable to connect to SSH at all aftwards (Connection Refused). Had to use OVH's Rescue mode.

Comments

  • Run passwd as the new user and set a password.

  • or "passwd " as root

  • "passwd newuser"

  • Thanks :D It worked out. Sometimes things can be so simple.

  • useradd should do it all if your on ubuntu / debian

  • As far as I know, a password-less user is denied shell login on all distros. Feel free to correct me :)

  • @sleddog said: As far as I know, a password-less user is denied shell login on all distros. Feel free to correct me :)

    Assuming that was a response to @exussum, Ubuntu, Debian, and some other distros have an additional utility called useradd aside from the normal adduser. useradd will ask a bunch of questions including password, so that it's always set.

  • @joepie91 said: Assuming that was a response to @exussum, Ubuntu, Debian, and some other distros have an additional utility called useradd aside from the normal adduser. useradd will ask a bunch of questions including password, so that it's always set.

    Not really. It was a general comment on the thread issue, which seemed to be that the user did not have a password. No password, no login -- regardless of distro.

  • AdducAdduc Member
    edited December 2012

    The default OpenSSH server (and the configurations most distributions ship) disables passwordless login, although it can be enabled with this line in /etc/ssh/sshd_config:
    PermitEmptyPasswords yes

  • @sleddog said: As far as I know, a password-less user is denied shell login on all distros. Feel free to correct me :)

    Only over SSH. You can remove the password and then login via a normal shell (or console/VNC for that matter).

Sign In or Register to comment.