I want to create a new ssh user for file transfer and remote access using WinSCP. I am using CentOS 7. I have created a new user with a password. Also allowed the PasswordAuthentication in /etc/ssh/sshd.conf. But still I am unable to get the ssh session from this. What all configuration need to get the ssh session (via Username and Password). Any help will be appreciated.
In order to do so, your newly created account must be a sudo account. To create one, you can create a new user normally.
Access your CentOS server:
Create a new user account:
- You need to replace username with the user name that you want to create.
Run the passwd command to set a password for the new user:
Add the new user to the sudo group:
usermod -aG wheel username
That is all. You have successfully created a sudo user on your CentOS system. You can now use this user to perform administrative tasks on your server.