Are you over 18 and want to see adult content?
More Annotations
![A complete backup of harpersbazaar.com](https://www.archivebay.com/archive/8da38f28-28e0-44d5-922f-af369c67f0ef.png)
A complete backup of harpersbazaar.com
Are you over 18 and want to see adult content?
![A complete backup of min-rimordbog.dk](https://www.archivebay.com/archive/34f6f505-3128-45d1-815e-2ba3a013bc23.png)
A complete backup of min-rimordbog.dk
Are you over 18 and want to see adult content?
![A complete backup of thenationsvacation.com](https://www.archivebay.com/archive/6cab1cfe-7518-4037-b623-6e8e7587c10c.png)
A complete backup of thenationsvacation.com
Are you over 18 and want to see adult content?
![A complete backup of thegoodgardener.net](https://www.archivebay.com/archive/d8409e6c-fe83-491c-b1e4-b6b2da6d398c.png)
A complete backup of thegoodgardener.net
Are you over 18 and want to see adult content?
Favourite Annotations
![A complete backup of https://balkanje.com/zakletva-epizoda-398/](https://www.archivebay.com/archive6/images/978936bb-7cba-4ea2-a3da-8b38c08f77e9.png)
A complete backup of https://balkanje.com/zakletva-epizoda-398/
Are you over 18 and want to see adult content?
![A complete backup of https://balkanje.com/latino-serije/ljubavna-prica/](https://www.archivebay.com/archive6/images/ae4ecd4e-71cf-421c-acf9-3be51159fdd2.png)
A complete backup of https://balkanje.com/latino-serije/ljubavna-prica/
Are you over 18 and want to see adult content?
![A complete backup of https://balkanje.com/latino-serije/u-ime-ljubavi/](https://www.archivebay.com/archive6/images/d8a3d85f-9fcd-43d1-aef9-1a019b685297.png)
A complete backup of https://balkanje.com/latino-serije/u-ime-ljubavi/
Are you over 18 and want to see adult content?
![A complete backup of https://balkanje.com/turske-serije/osobnost-2018/](https://www.archivebay.com/archive6/images/5bd9848f-9fe7-44a0-bf02-3d844de05a5f.png)
A complete backup of https://balkanje.com/turske-serije/osobnost-2018/
Are you over 18 and want to see adult content?
![A complete backup of https://balkanje.com/latino-serije/page/2/](https://www.archivebay.com/archive6/images/e31f0272-d129-4b5d-a39f-2c0101aba2a8.png)
A complete backup of https://balkanje.com/latino-serije/page/2/
Are you over 18 and want to see adult content?
![A complete backup of https://balkanje.com/turske-serije/fatih-harbiye/](https://www.archivebay.com/archive6/images/fa54507a-0a62-4b27-8cc5-dc6004f1460c.png)
A complete backup of https://balkanje.com/turske-serije/fatih-harbiye/
Are you over 18 and want to see adult content?
Text
DIGITALOCEAN
We offer transparent, predictable pricing so you know what you’ll be paying every single time. Cloud Spectator – an independent benchmarking firm – concluded that DigitalOcean delivers the best CPU performance per dollar when compared with AWS and Google. HOW TO INSTALL THE DO 1-CLICK WORDPRESS DROPLET HOW TO INSTALL PHP 7.4 AND SET UP A LOCAL DEVELOPMENTSEE MORE ONDIGITALOCEAN.COM
APACHE CONFIGURATION ERROR AH00558: COULD NOT RELIABLY sudo systemctl status httpd.service -l --no-pager The -l flag will ensure that systemctl outputs the entire contents of a line, instead of substituting in ellipses () for long lines. The --no-pager flag will output the entire log to your screen without invoking a tool like less that only shows a screen of content at a time.. You should receive output that is similar to the following: HOW TO INSTALL JENKINS ON UBUNTU 20.04 CAN ACCESS MY WEBSITE THROUGH IP BUT NOT DOMAIN NAMEHELLO @ALOYSBERGER I STUCK AT SAME ISSUE. BUT AFTER SOME RND RUN THIS BELOW COMMAND. SUDO UFW ALLOW ‘APACHE’ AND IT WORKED FOR ME SMOOTHLY. HOPE IT...0AND A THIRD PIECE OF INFORMATION, IF I CURL THE ADDRESS CURL WWW.ALOYS.DEV I ACTUALLY GET THE RESPONSE! CURL WWW.ALOYS.DEV ALOYS.DEV! SUCCESS! THE...0ALRIGHT, SO I FOUND OUT THAT DOMAIN NAME .DEV HAVE ISSUES WITH CHROME. I WILL POST THE ANSWER ONCE I FOUND OUT HOW TO MAKE IT WORK. BUT IF YOU TRY...1HI ALEX! STILL HAVING THE SAME ISSUE DESPITE FOLLOWING YOUR ADVICE… THIS IS THE RESULT OF THE NETSTAT COMMANDE, IF IT MAY HELP. ROOT@ALOYS ~# NETST...0HELLO, @ALOYSBERGER CAN YOU PLEASE CHECK IF APACHE IS RUNNING AND ALSO PERFORM A RESTART AS WELL? YOU CAN CHECK IF APACHE IS RUNNING WITH THIS COMM...0HERE IS AN UPDATE! THE REQUEST DOESN’T TIME OUT ANYMORE ON THE DOMAIN (HTTP://ALOYS.DEV) BUT I GET AN ERROR: ERR_CONNECTION_REFUSED THAT’S AN IMPRO...0FINALLY WORKED IT OUT. I JUST GOT A SSL CERTIFICATE AND NOW USING HTTPS OVER HTTP (WHICH WAS THE PLAN FROM THE BEGINNING). YOU CAN GET A FREE SSL C...1 Hi, I have been struggling on that one for a few days. I set up virtual hosts as per explained in various tutorial. I can access my website through the IP address but not the actual domain name. Here is the Vhost: ``` # The ServerName directive sets t HOW TO SET UP THE CODE-SERVER CLOUD IDE PLATFORM ON UBUNTUSEE MORENEW CONTENT WILL BE ADDED ABOVE THE CURRENT AREA OF FOCUS UPON SELECTIONSEE MORE ON DIGITALOCEAN.COM APACHE NETWORK ERROR AH00072: MAKE_SOCK: COULD NOT BIND TO This output indicates two AH00072 errors. The first of these explains that Apache cannot bind to the :80 address, which is port 80 on all available IPv6 interfaces. The next line, with the address 0.0.0.0:80, indicates Apache cannot bind to port 80 on all available IPv4 interfaces. Depending on your system’s configuration, the IP HOW TO FIX PUTTY ERROR: "PUTTY FATAL ERROR: NO SUPPORTED Hello, @mtoepp Can you please access your server/droplet and open the ssh config file, located in: /etc/ssh/ssh_config And make sure that the following line is HOW I GET FTP LOGIN WITH FILEZILLA? We do not provide any droplet images with FTP running by default as it is an inherently insecure protocol. SFTP is running on all new droplets on port 22 and can be accessed with your root login credentials using Filezilla. When logging in as root you will start out in the /root directory but will have access to access any directory you require.DIGITALOCEAN
We offer transparent, predictable pricing so you know what you’ll be paying every single time. Cloud Spectator – an independent benchmarking firm – concluded that DigitalOcean delivers the best CPU performance per dollar when compared with AWS and Google. HOW TO INSTALL THE DO 1-CLICK WORDPRESS DROPLET HOW TO INSTALL PHP 7.4 AND SET UP A LOCAL DEVELOPMENTSEE MORE ONDIGITALOCEAN.COM
APACHE CONFIGURATION ERROR AH00558: COULD NOT RELIABLY sudo systemctl status httpd.service -l --no-pager The -l flag will ensure that systemctl outputs the entire contents of a line, instead of substituting in ellipses () for long lines. The --no-pager flag will output the entire log to your screen without invoking a tool like less that only shows a screen of content at a time.. You should receive output that is similar to the following: HOW TO INSTALL JENKINS ON UBUNTU 20.04 CAN ACCESS MY WEBSITE THROUGH IP BUT NOT DOMAIN NAMEHELLO @ALOYSBERGER I STUCK AT SAME ISSUE. BUT AFTER SOME RND RUN THIS BELOW COMMAND. SUDO UFW ALLOW ‘APACHE’ AND IT WORKED FOR ME SMOOTHLY. HOPE IT...0AND A THIRD PIECE OF INFORMATION, IF I CURL THE ADDRESS CURL WWW.ALOYS.DEV I ACTUALLY GET THE RESPONSE! CURL WWW.ALOYS.DEV ALOYS.DEV! SUCCESS! THE...0ALRIGHT, SO I FOUND OUT THAT DOMAIN NAME .DEV HAVE ISSUES WITH CHROME. I WILL POST THE ANSWER ONCE I FOUND OUT HOW TO MAKE IT WORK. BUT IF YOU TRY...1HI ALEX! STILL HAVING THE SAME ISSUE DESPITE FOLLOWING YOUR ADVICE… THIS IS THE RESULT OF THE NETSTAT COMMANDE, IF IT MAY HELP. ROOT@ALOYS ~# NETST...0HELLO, @ALOYSBERGER CAN YOU PLEASE CHECK IF APACHE IS RUNNING AND ALSO PERFORM A RESTART AS WELL? YOU CAN CHECK IF APACHE IS RUNNING WITH THIS COMM...0HERE IS AN UPDATE! THE REQUEST DOESN’T TIME OUT ANYMORE ON THE DOMAIN (HTTP://ALOYS.DEV) BUT I GET AN ERROR: ERR_CONNECTION_REFUSED THAT’S AN IMPRO...0FINALLY WORKED IT OUT. I JUST GOT A SSL CERTIFICATE AND NOW USING HTTPS OVER HTTP (WHICH WAS THE PLAN FROM THE BEGINNING). YOU CAN GET A FREE SSL C...1 Hi, I have been struggling on that one for a few days. I set up virtual hosts as per explained in various tutorial. I can access my website through the IP address but not the actual domain name. Here is the Vhost: ``` # The ServerName directive sets t HOW TO SET UP THE CODE-SERVER CLOUD IDE PLATFORM ON UBUNTUSEE MORENEW CONTENT WILL BE ADDED ABOVE THE CURRENT AREA OF FOCUS UPON SELECTIONSEE MORE ON DIGITALOCEAN.COM APACHE NETWORK ERROR AH00072: MAKE_SOCK: COULD NOT BIND TO This output indicates two AH00072 errors. The first of these explains that Apache cannot bind to the :80 address, which is port 80 on all available IPv6 interfaces. The next line, with the address 0.0.0.0:80, indicates Apache cannot bind to port 80 on all available IPv4 interfaces. Depending on your system’s configuration, the IP HOW TO FIX PUTTY ERROR: "PUTTY FATAL ERROR: NO SUPPORTED Hello, @mtoepp Can you please access your server/droplet and open the ssh config file, located in: /etc/ssh/ssh_config And make sure that the following line is HOW I GET FTP LOGIN WITH FILEZILLA? We do not provide any droplet images with FTP running by default as it is an inherently insecure protocol. SFTP is running on all new droplets on port 22 and can be accessed with your root login credentials using Filezilla. When logging in as root you will start out in the /root directory but will have access to access any directory you require. HOW TO CREATE A MINECRAFT SERVER Technical tutorials, Q&A, events—This is an inclusive place where developers can find or lend support and discover new ways to contribute to the community. HOW TO ADD A FAVICON TO YOUR WEBSITE WITH HTML To add a favicon to your site, create a folder in your project directory called images (if you don’t already have one) and save your desired favicon image in this folder. If you don’t have an image, you download this Sammy the Shark image that we have hosted on our demonstration website. (For a refresher on how to add images towebpages
GLOB TOOL | DIGITALOCEAN DigitalOcean Products Virtual Machines Managed Databases Managed Kubernetes Block Storage Object Storage Marketplace VPC Load Balancers Welcome to the developer cloud. DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one DIGITALOCEAN: GITHUB STUDENT DEVELOPER PACK Simple Cloud Hosting for Student Developers. Sign up for the GitHub Student Developer Pack to receive a $100 DigitalOcean credit. HOW TO INSTALL MARIADB ON UBUNTU 20.04 MariaDB is an open-source database management system, commonly used as an alternative for the MySQL portion of the popular LAMP (Linux, Apache, MySQL, PHP/Python/Perl) stack. It is intended to be a drop-in replacement for MySQL. This tutorial will exp HOW TO DOWNLOAD FILES WITH CURL Step 1 — Fetching remote files. Out of the box, without any command-line arguments, the curl command will fetch a file and display its contents to the standard output. Let’s give it a try by downloading the robots.txt file from Digitalocean.com: You’ll see the file’s contents displayed on the screen: Give curl a URL and itwill fetch
HOW TO CREATE TEMPORARY AND PERMANENT REDIRECTS WITH HTTP redirection is a way to point one domain or address to another. There are a few different kinds of redirects (301 Moved Permanently and 302 Found), each of which mean something different to the client browser. You can create a redirect in Apache HOW TO MONITOR SYSTEM AUTHENTICATION LOGS ON UBUNTU How To Monitor System Logins. A fundamental component of authentication management is monitoring the system after you have configured your users. Luckily, modern Linux systems log all authentication attempts in a discrete file. This is located at " /var/log/auth.log ": sudo less /var/log/auth.log. May 3 18:20:45 localhost sshd : Server MY SITE SHOW BANDWIDTH LIMIT EXCEEDED AND NOT WORK Mi site crediexpress.com.ar show this message, upgrade my doplet to 2 Tb of tranfer, and not resolve this problem. Plase help me. Thanks PUTTY ERROR: NO SUPPORTED AUTHENTICATION METHODS AVAILABLE Paste public key text here and save the file. Type sudo nano /etc/ssh/sshd_config. Change PasswordAuthentication from “ yes ” to “ no” and save the file. Log out and attempt to log back in (if using PuTTY make sure you set up auth parameters to point to your private key) You can then upload the key using this command:× Contents
* Step 1 — Logging in as Root * Step 2 — Creating a New User * Step 3 — Granting Administrative Privileges * Step 4 — Setting Up a Basic Firewall * Step 5 — Enabling External Access for Your Regular User * Where To Go From Here? * Step 1 — Logging in as Root * Step 2 — Creating a New User * Step 3 — Granting Administrative Privileges * Step 4 — Setting Up a Basic Firewall * Step 5 — Enabling External Access for Your Regular User * Where To Go From Here? × Share this Tutorial WHERE WOULD YOU LIKE TO SHARE THIS TO?*
*
*
Hacker News
*
Share link
Tutorial share link
× Share this Tutorial WHERE WOULD YOU LIKE TO SHARE THIS TO?*
*
*
Hacker News
*
Share link
Tutorial share link
×
SIGN UP FOR OUR NEWSLETTER Get the latest tutorials on SysAdmin and open source topics.Sign Up
× Thanks for signing up!DigitalOcean home
* 1 day Upcoming Tech Talk: Getting Started With Laravel Jetstream* Products
* Pricing
* Docs
* Product Docs
* API Docs
* Sign in
Sign in to
* Community
* Control Panel
*
*
* Tutorials
* Questions
* Get Involved
Participate
*
HUB FOR GOOD Supporting each other to make an impact*
WRITE FOR DIGITALOCEAN You get paid, we donate to tech non-profits.*
HACKTOBERFEST Contribute to Open Source Build with DigitalOcean * Community Tools and Integrations * Hatch Startup Program * Marketplace Partner Program * Solutions Partner Program * Presentation Grants * DigitalOcean on GitHub*
* Search Community /* Sign Up
RELATED
How To Store and Retrieve Data in MariaDB Using Python on Ubuntu18.04 Tutorial
How DigitalOcean Manages, Monitors, and Secures Kubernetes for AppPlatform Tutorial
TUTORIAL
INITIAL SERVER SETUP WITH UBUNTU 18.04 Ubuntu Getting StartedSecurity
Initial Server SetupUbuntu 18.04
*
*
By Justin Ellingwood Published onApril 27, 2018 1.3m views English Deutsch Español Français Português Русский 中文English
NOT USING UBUNTU 18.04? CHOOSE A DIFFERENT VERSION OR DISTRIBUTION. Ubuntu 18.04Automated BashAutomated AnsibleCentOS 8CentOS 7Debian 9Debian 8Debian 10Ubuntu 20.04Ubuntu 16.04Ubuntu 14.04Ubuntu 18.04
See More
INTRODUCTION
When you first create a new Ubuntu 18.04 server, there are a few configuration steps that you should take early on as part of the basic setup. This will increase the security and usability of your server and will give you a solid foundation for subsequent actions. NOTE: The guide below demonstrates how to manually complete the steps we recommend for new Ubuntu 18.04 servers. Following this procedure manually can be useful to learn some basic system administration skills and as an exercise to fully understand the actions being taken on your server. As an alternative, if you wish to get up and running more quickly, you can run our initial server setup script which automates these steps. STEP 1 — LOGGING IN AS ROOT To log into your server, you will need to know your SERVER’S PUBLIC IP ADDRESS. You will also need the password or, if you installed an SSH key for authentication, the private key for the ROOT user’s account. If you have not already logged into your server, you may want to follow our guide on how to connect to your Droplet with SSH,
which covers this process in detail. If you are not already connected to your server, go ahead and log in as the ROOT user using the following command (substitute the highlighted portion of the command with your server’s public IPaddress):
* ssh root@your_server_ipCopy
Accept the warning about host authenticity if it appears. If you are using password authentication, provide your ROOT password to log in. If you are using an SSH key that is passphrase protected, you may be prompted to enter the passphrase the first time you use the key each session. If this is your first time logging into the server with a password, you may also be prompted to change the ROOT password.ABOUT ROOT
The ROOT user is the administrative user in a Linux environment that has very broad privileges. Because of the heightened privileges of the ROOT account, you are _discouraged_ from using it on a regular basis. This is because part of the power inherent with the ROOT account is the ability to make very destructive changes, even by accident. The next step is to set up an alternative user account with a reduced scope of influence for day-to-day work. We’ll teach you how to gain increased privileges during the times when you need them. STEP 2 — CREATING A NEW USER Once you are logged in as ROOT, we’re prepared to add the new user account that we will use to log in from now on. This example creates a new user called SAMMY, but you should replace it with a username that you like:* adduser sammy
Copy
You will be asked a few questions, starting with the account password. Enter a strong password and, optionally, fill in any of the additional information if you would like. This is not required and you can just hit ENTER in any field you wish to skip. STEP 3 — GRANTING ADMINISTRATIVE PRIVILEGES Now, we have a new user account with regular account privileges. However, we may sometimes need to do administrative tasks. To avoid having to log out of our normal user and log back in as the ROOT account, we can set up what is known as “superuser” or ROOT privileges for our normal account. This will allow our normal user to run commands with administrative privileges by putting the word sudo before each command. To add these privileges to our new user, we need to add the new user to the SUDO group. By default, on Ubuntu 18.04, users who belong to the SUDO group are allowed to use the sudo command. As ROOT, run this command to add your new user to the SUDO group (substitute the highlighted word with your new user): * usermod -aG sudo sammyCopy
Now, when logged in as your regular user, you can type sudo before commands to perform actions with superuser privileges. STEP 4 — SETTING UP A BASIC FIREWALL Ubuntu 18.04 servers can use the UFW firewall to make sure only connections to certain services are allowed. We can set up a basic firewall very easily using this application. NOTE: If your servers are running on DigitalOcean, you can optionally use DigitalOcean Cloud Firewalls instead of the UFW firewall. We recommend using only one firewall at a time to avoid conflicting rules that may be difficult to debug. Different applications can register their profiles with UFW upon installation. These profiles allow UFW to manage these applications by name. OpenSSH, the service allowing us to connect to our server now, has a profile registered with UFW. You can see this by typing:* ufw app list
Copy
OutputAvailable applications:OpenSSH
We need to make sure that the firewall allows SSH connections so that we can log back in next time. We can allow these connections bytyping:
* ufw allow OpenSSHCopy
Afterwards, we can enable the firewall by typing:* ufw enable
Copy
Type “y” and press ENTER to proceed. You can see that SSH connections are still allowed by typing:* ufw status
Copy
OutputStatus: active To Action From -- ------ ---- OpenSSH ALLOW Anywhere OpenSSH (v6) ALLOW Anywhere (v6) As THE FIREWALL IS CURRENTLY BLOCKING ALL CONNECTIONS EXCEPT FOR SSH, if you install and configure additional services, you will need to adjust the firewall settings to allow acceptable traffic in. You can learn some common UFW operations in this guide.
STEP 5 — ENABLING EXTERNAL ACCESS FOR YOUR REGULAR USER Now that we have a regular user for daily use, we need to make sure we can SSH into the account directly. NOTE: Until verifying that you can log in and use sudo with your new user, we recommend staying logged in as ROOT. This way, if you have problems, you can troubleshoot and make any necessary changes as ROOT. If you are using a DigitalOcean Droplet and experience problems with your ROOT SSH connection, you can log into the Droplet using the DigitalOcean Console.
The process for configuring SSH access for your new user depends on whether your server’s ROOT account uses a password or SSH keys forauthentication.
IF THE ROOT ACCOUNT USES PASSWORD AUTHENTICATION If you logged in to your ROOT account _using a password_, then password authentication is enabled for SSH. You can SSH to your new user account by opening up a new terminal session and using SSH withyour new username:
* ssh sammy@your_server_ipCopy
After entering your regular user’s password, you will be logged in. Remember, if you need to run a command with administrative privileges, type sudo before it like this: * sudo command_to_runCopy
You will be prompted for your regular user password when using sudo for the first time each session (and periodically afterwards). To enhance your server’s security, WE STRONGLY RECOMMEND SETTING UP SSH KEYS INSTEAD OF USING PASSWORD AUTHENTICATION. Follow our guide on setting up SSH keys on Ubuntu 18.04 to learn how to configure key-based authentication. IF THE ROOT ACCOUNT USES SSH KEY AUTHENTICATION If you logged in to your ROOT account _using SSH keys_, then password authentication is _disabled_ for SSH. You will need to add a copy of your local public key to the new user’s ~/.ssh/authorized_keys file to log in successfully. Since your public key is already in the ROOT account’s ~/.ssh/authorized_keys file on the server, we can copy that file and directory structure to our new user account in our existing session. The simplest way to copy the files with the correct ownership and permissions is with the rsync command. This will copy the ROOT user’s .ssh directory, preserve the permissions, and modify the file owners, all in a single command. Make sure to change the highlighted portions of the command below to match your regular user’s name: NOTE: The rsync command treats sources and destinations that end with a trailing slash differently than those without a trailing slash. When using rsync below, be sure that the source directory (~/.ssh) DOES NOT include a trailing slash (check to make sure you are not using~/.ssh/).
If you accidentally add a trailing slash to the command, rsync will copy the _contents_ of the ROOT account’s ~/.ssh directory to the sudo user’s home directory instead of copying the entire ~/.ssh directory structure. The files will be in the wrong location and SSH will not be able to find and use them. * rsync --archive --chown=sammy:sammy ~/.ssh /home/sammyCopy
Now, open up a new terminal session and using SSH with your newusername:
* ssh sammy@your_server_ipCopy
You should be logged in to the new user account without using a password. Remember, if you need to run a command with administrative privileges, type sudo before it like this: * sudo command_to_runCopy
You will be prompted for your regular user password when using sudo for the first time each session (and periodically afterwards). WHERE TO GO FROM HERE? At this point, you have a solid foundation for your server. You can install any of the software you need on your server now. You rated this helpful. Undo You reported this tutorial. Undo Was this helpful? Yes No42 Report an issue
About the authors
Justin Ellingwood
Senior Technical Writer @DigitalOcean STILL LOOKING FOR AN ANSWER?Ask a question
Search for more helpRELATED
How To Store and Retrieve Data in MariaDB Using Python on Ubuntu18.04 Tutorial
How DigitalOcean Manages, Monitors, and Secures Kubernetes for AppPlatform Tutorial
* Comments
* Follow-Up Questions42 COMMENTS
* Preview
Markdown Preview
* B
* I
* H1
* H2
* H3
* UL
* OL
* Link
* Code
* Highlight
* Table
Could not load preview. Try againLoading preview...
Sign In to Comment
Load
*
7
jasonheecs May 3, 2018 I have made a bash script to automate the setup process, hopefully this
will be useful to someone else.REPLY Report
*
0
mnymic January 12, 2019@jasonheecs
nice!
however, feels like cheating to an extent. no pain, no gain, they say. on the other hand, I adore bash scripts.NICE)
REPLY Report
*
2
jamesbowlinjr November 22, 2019 You sir are awesome. Automation is an Admins friend.REPLY Report
*
13
benforshey May 11, 2018 Hey, Justin! Thanks for the great tutorial. In your last step, rsync --archive --chown=sammy:sammy ~/.ssh /home/sammy, it might be worth pointing out that there should be NO trailing slash on ~/.ssh. I only mention that because when I was typing it in, I hitagain!
REPLY Report
*
5
jellingwood May 15, 2018@benforshey
Yeah, that’s a good call. Thanks for the input! I’ve added a note to help users avoid that problem in the future.REPLY Report
*
2
ajbozdar June 5, 2018 This saved my day. Thank you very much.REPLY Report
*
0
odtrtest July 31, 2018 Hi..i followed this steps but I still cannot SSH login, i remove the trailing slash followed this rsync but still error..what am i doing wrong? please guide…thanks (rsync –archive –chown=sammy:sammy .ssh /home/sammy). with trailing slash and without trailing slash still cannot login with SSH.REPLY Report
*
2
benforshey August 2, 2018Hey, @odtrtest
! Are you
replacing sammy with your own username?REPLY Report
*
0
tonykyriakidis December 2, 2018Thanks buddy!
REPLY Report
*
12
hyperpower June 3, 2018 It’s also probably advisable to include a Step 6: Disable SSH rootlogin.
This can be done by setting PermitRootLogin to no in /etc/ssh/sshd_config.REPLY Report
*
1
daviddo February 18, 2019 If you disable SSH root login, will you still be able to access the server via DigitalOcean web console, in case of emergency?REPLY Report
*
3
hyperpower April 27, 2019Yes.
Although the web console isn’t great, and is extremely buggy with copy and pasting (e.g. the copy and pasting of a new ssh key).REPLY Report
*
1
daviddo April 28, 2019Thanks!
REPLY Report
*
0
DanielAlejandro July 10, 2019 And don’t forget to restart ssh with sudo service ssh restart.REPLY Report
*
4
minaz June 5, 2018
I also prefer to install fail2ban to prevent anybody trying to hackinto the system.
apt-get install fail2banREPLY Report
*
2
infoac253e1b43f September 5, 2018 The old 16-04 tutorial made a lot more sense with how to get the keys in the correct place for ssh on the new user.REPLY Report
*
0
storemalt September 17, 2018 You might not be able to access using the new user you created, make sure you allow OpenSSH on uwf by (logged in as root or access it via the droplet console):ufw allow OpenSSH
in my case i also allowed port 22ufw allow 22
REPLY Report
*
0
fernatomic November 26, 2018 Great piece! thank you. Keep up the good work :)REPLY Report
*
0
mnymic January 12, 2019 https://transfer.sh/ is a neat alternative for rsync. \Yet, not sure about security compliance on their side.i.e.
$ curl -H "Max-Downloads: 1" -H "Max-Days: 5" --upload-file ./xxx.pub https://transfer.sh/xxx.pub output returns a downloadable link that fits both for cli and webUI Also addable as alias to .bashrc: # Add this to .bashrc or its equivalent transfer() { if ; then echo -e "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; fi tmpfile=$( mktemp -t transferXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's//-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://transfer.sh/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile; } # Now you can use transfer command $ transfer hello.txtREPLY Report
*
0
honiko February 11, 2019 Very useful, short and it works. Thx for sharing.REPLY Report
*
0
ShivamJoker February 16, 2019 Please include this in your doc sudo ufw allow 22REPLY Report
*
2
hyperpower April 27, 2019 Why? It already includes ufw allow OpenSSH. Note also that it is equivalent to ufw allow 22/tcp, which is more restrictive and thus better than what you’re suggesting.REPLY Report
*
0
xti April 2, 2019
Didn’t work. I’m getting “Permission denied (publickey)”.REPLY Report
*
0
TurtleWolfe April 6, 2019 that’s usually a local problem.. make sure you’ve got your agent running and using the correct keyREPLY Report
*
0
milosmns April 27, 2019 This can also happen when you try to access your newly created user before actually copying the keys over from the root user.REPLY Report
*
0
webdevotion August 23, 2020 Make sure to rsync --archive --chown the home directory of your newly created user. Search the article for rsync. The complete command is documented by the author.REPLY Report
*
0
kumeek May 14, 2019 I followed the steps but at the end when trying to ssh using my newuser I get this
Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-47-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Tue May 14 12:58:00 UTC 2019 System load: 0.0 Processes: 85 Usage of /: 7.7% of 24.06GB Users logged in: 1 Memory usage: 11% IP address for eth0: 142.93.104.207 Swap usage: 0% Get cloud support with Ubuntu Advantage Cloud Guest: http://www.ubuntu.com/business/services/cloud * Canonical Livepatch is available for installation. - Reduce system reboots and improve kernel security. Activate at: https://ubuntu.com/livepatch 168 packages can be updated. 0 updates are security updates. ******************************************************************************** Welcome to DigitalOcean's One-Click Node.js Droplet. To keep this Droplet secure, the UFW firewall is enabled. All ports are BLOCKED except 22 (SSH), 80 (HTTP), and 443 (HTTPS). To get started, visit http://do.co/node1804 ******************************************************************************** To delete this message of the day: rm -rf /etc/update-motd.d/99-one-click Last login: Tue May 14 12:52:57 2019 from 217.96.166.218 To run a command as administrator (user "root"), use "sudoufw status
Status: active
To Action From -- ------ ---- 22/tcp LIMIT Anywhere 80/tcp ALLOW Anywhere 443/tcp ALLOW Anywhere OpenSSH ALLOW Anywhere 22/tcp (v6) LIMIT Anywhere (v6) 80/tcp (v6) ALLOW Anywhere (v6) 443/tcp (v6) ALLOW Anywhere (v6) OpenSSH (v6) ALLOW Anywhere (v6) and als the authorized_keys are both at root and my user .sshdirectory.
REPLY Report
*
0
k1ngzee June 19, 2019 Hi, how would this go along with https://www.digitalocean.com/community/tutorials/an-introduction-to-cloud-config-scripting?
It would be nice to include at the end a cloud-config that will automatically run all this on first server boot An Introduction to Cloud-Config Scripting by Justin Ellingwood The DigitalOcean metadata service includes a field called "user-data", which can be used to specify a script that will be run as your server is brought online. The CloudInit program, which runs these scripts, can process a special script type called "cloud-config". In this guide, we'll explore how to create cloud-config files and the best ways to leverage their power.REPLY Report
*
0
Karstein July 7, 2019 I am using Putty. Is there a way to set up this with Putty instead ofOpenSSH?
REPLY Report
*
0
sdyalor July 27, 2019usefull, thanks ;3
REPLY Report
*
2
francesco89 August 5, 2019 after i logged in as ssh sammy@your_server_ip i got problem with this command rsync –archive –chown=sammy:sammy ~/.ssh /home/sammyhere is the error
rsync: link_stat “/home/sammy/.ssh” failed: No such file ordirectory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 2 3) at main.c(1196)REPLY Report
*
0
jamiec1992 December 21, 2019 Can’t get the command rsync –archive –chown=sammy:sammy ~/.ssh /home/sammy to work either after following these instructions. Anyone got any idea how to make this work?REPLY Report
*
0
webdevotion August 23, 2020 From https://help.ubuntu.com/community/rsync: “_Rsync is installed in Ubuntu by default_”. Make sure there are two dashes ( -- ) before the archive and chown flags. Make sure you replace sammy with the name of YOUR user. If the name for your user on the server is janedoe you replace sammy with janedoe. The command is to be executed ON the server in an SSH session. Not on your local machine. So your command might look something like this: # logged in via ssh as root as we follow the setup for the new user # my-ubuntu-machine is the name of the server which is being configured over ssh # janedoe is the username of the user I am setting up for this machine root@my-ubuntu-machine:~# rsync --archive --chown=janedoe: janedoe ~/.ssh /home/janedoeCopy
edited by MattIPv4
REPLY Report
*
0
jamiec1992 December 21, 2019 Show comment This comment has been marked as resolved by JAMIEC1992. The problem I was having was when I tried logging in with my username, it would give me an error “No supported authentication methods available (server sent: publickey)” When I logged in as root and ran this command (changing sammy to myusername)
chown -R sammy:sammy /home/sammy/.ssh…it worked.
REPLY Report
*
0
shakervc April 16, 2020 Thanks for the article. This worked very well for me with the exception of setting up the firewall. I typed the following, hoping to allow SSH and HTTP :sudo ufw allow 22
sudo ufw allow 80
ufw enable
HTTP does not work. I had to disable ufw to get HTTP to work.REPLY Report
Previous _1_ 2
Next
Load More Comments
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Get our biweekly newsletter Sign up for Infrastructure as a Newsletter.Hub for Good
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help. Become a contributor You get paid; we donate to tech nonprofits. Featured on Community Kubernetes CourseLearn Python 3
Machine Learning in Python Getting started with GoIntro to Kubernetes
------------------------- DigitalOcean Products Virtual MachinesManaged Databases
Managed
Kubernetes Block
Storage Object
Storage MarketplaceVPC
Load Balancers
WELCOME TO THE DEVELOPER CLOUD DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or tenthousand.
Learn More
DigitalOcean Homepage 2021 DigitalOcean, LLC. All rights reserved.Company
* About
* Leadership
* Blog
* Careers
* Partners
* Referral Program
* Press
* Legal
* Security & Trust CenterProducts
* Pricing
* Products Overview
* Droplets
* Kubernetes
* Managed Databases
* Spaces
* Marketplace
* Load Balancers
* Block Storage
* API Documentation
* Documentation
* Release Notes
Community
* Tutorials
* Q&A
* Tools and Integrations* Tags
* Product Ideas
* Write for DigitalOcean * Presentation Grants * Hatch Startup Program* Shop Swag
* Research Program
* Open Source
* Code of Conduct
Contact
* Get Support
* Trouble Signing In?* Sales
* Report Abuse
* System Status
× Join the Community BEFORE YOU CAN DO THAT TO COMPLETE THIS ACTION, SIGN IN TO YOUR COMMUNITY ACCOUNT OR CREATE A NEW ONE.Sign In Sign Up
×
Community
* Tutorials
* Questions
* Write for Us
* Hacktoberfest
* Tools
Products
* Homepage
* Pricing
* Product Overview
* Marketplace
Customers
* Control Panel
* Documentation
* Contact Support
* Contact Sales
* Sign In
We use cookies to provide our services and for analytics and marketing. To find out more about our use of cookies, please see ourPrivacy Policy
and Cookie and Tracking Notice. By continuing to
browse our website, you agree to our use of cookies.I understand
Loading...
COMMUNITY
PRODUCT AND API DOCSMARKETPLACE
navigate go exit Scroll to topDetails
Copyright © 2024 ArchiveBay.com. All rights reserved. Terms of Use | Privacy Policy | DMCA | 2021 | Feedback | Advertising | RSS 2.0