Hello,
I´m using this version CentOS release 6.4 (Final).
I created a new user, and this user supposed to be a "root" but I can´t log in via ssh.
I can log in only via sftp.
Error Log -
sshd[26434]: pam_unix(sshd:session): session opened for user yxz by (uid=0)
sshd[26437]: error: /dev/pts/1: No such file or directory
sshd[26437]: error: open /dev/tty failed - could not set controlling tty: No such file or directory
sshd[26437]: The session allows sftp connections only
sshd[26434]: pam_unix(sshd:session): session closed for user yxz
Config sshd_config
Subsystem sftp internal-sftp
Match group ftpaccess
ChrootDirectory %h
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
SELINUX - Disabled
visudo
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
yxz ALL=(ALL) ALL
Any suggestion?
Can´t Log via ssh with the new user
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Can´t Log via ssh with the new user
You told it to force sftp.
Put the sshd_config back to stock.
Put the sshd_config back to stock.