By miansaleem
Hello,
I have forgot user password. I have the root password with no ssh access.
nano /etc/ssh/sshd_config PermitRootLogin no UseDNS no AllowUsers user
I do have firewall that I think not allowing me to access console.
What should you suggest me?
Thank you in advance.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Have you disabled root login yet?? <br> <br>if you did then what about permissions to SFTP to both user and root? <br> <br>You still can login to your control panel at DO console and login there as root if you didn’t block root user yet. Then delete the user and add the user again… <br> <br>
Root login is disabled and tried PSFTP getting connection refused error. DO console is giving this error Failed to establish a connection to the console. Please reload. might be because of firewall. Is there any thing else can be done to edit sshd_config? <br> <br>Thank you for your time and reply.
How about a backup?? did you make any backup or snapshot after you set things nicely?? <br> <br>how about the user you set up? does the user have any privilage to access SFTP or FTP and handle files?? <br> <br>because if the user can, then you just need to edit some file and you’re done…
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.