Can´t Log via ssh with the new user
Posted: 2015/09/11 20:15:24
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?
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?