• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » How to Access FTP on a Server with PEM Certificate Based SSH Login

By Abhishek Ghosh April 21, 2023 7:51 pm Updated on April 24, 2023

How to Access FTP on a Server with PEM Certificate Based SSH Login

Advertisement

Our reader Edward read our guide on How to Enable PEM Certificate-Based SSH Login and successfully hardened the SSH login system of his server. The next day he discovered that he can not log in via FileZilla as the root user. He can log in as the newly created user for SSH login. But, he can not find the way to run the sudo su command in FileZilla to become the root user. The website files on his server belong to the root user. WinSCP has a good guide for this kind of situation:

Vim
1
https://winscp.net/eng/docs/faq_su

The setup we have described in that previous tutorial leaves no way to solve this issue. But we can have offer few solutions for this kind of situations.

Temporarily Enable the root user to do SSH/FTP

Open the SSH configuration file:

Advertisement

---

Vim
1
nano /etc/ssh/sshd_config

Find the line PermitRootLogin and set it to yes:

Vim
1
2
3
...
PermitRootLogin no
...

restart the service:

Vim
1
service sshd restart

Now, you’ll unable to SSH as the root user and also can use FileZilla. This is not a secure method but we will use the system for 15 minutes to an hour or so. After our work on SSH is completed, we will revert it:

Do not keep any SSH session open from the root user account:

Vim
1
nano /etc/ssh/sshd_config

Find the line PermitRootLogin and set it to no:

Vim
1
2
3
...
PermitRootLogin no
...

restart the service:

Vim
1
service sshd restart

This is insecure because the FTP protocol will forward the password as plain text.

wget to and from Your Server

You can copy the files you want to download inside the public directory (such as /var/www/html) and wget from your computer. Later, delete the files on the server which you have copied. If you want to upload any file, upload it on GitHub as a gist or on Dropbox or any CDN. Then wget it from your server.

How to Access FTP on a Server with PEM Certificate Based SSH Login

This is secure and uncomplicated since we are not using the FTP protocol at all.

Install VSFTD and Configure

It is a complicated method since the initial server configuration was for the root user. Ideally, we should add first add a user for the public directory content, remove the root user’s login for SSH, and then install the server components. We are not describing this method in this guide since it is long.

The methods we describe for server setup, configuration are intended for single webmaster.

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How to Access FTP on a Server with PEM Certificate Based SSH Login

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • How to Enable PEM Certificate Based SSH Login

    After following this guide, you’ll get an identity file-based SSH authentication like AWS, HP cloud provides a way to log in. Commonly most of the cloud servers and dedicated servers are delivered with SSH login using the root user account. This is a security risk since any attacker can easily guess the username root and […]

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy