Can´t Log via ssh with the new user

General support questions
Post Reply
erica.olliver
Posts: 1
Joined: 2015/09/11 20:06:59

Can´t Log via ssh with the new user

Post by erica.olliver » 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?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Can´t Log via ssh with the new user

Post by gerald_clark » 2015/09/11 22:33:09

You told it to force sftp.
Put the sshd_config back to stock.

Post Reply