Documente Academic
Documente Profesional
Documente Cultură
RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($39.99) Get This Book
UBUNTU 13 I TecMint :
SPONSORED SEARCHES
Ubuntu Server Edition How to Install Nagios 4.3.4 on RHEL, CentOS and
Fedora
installation
Install Cacti (Network Monitoring) on
20 Funny Commands of Linux or Linux is Fun in7.x/6.x/5.x
RHEL/CentOS Terminal and Fedora 24-12
https://www.tecmint.com/initial-ubuntu-server-setup-guide/ 2/38
3/2/2019 Initial Ubuntu Server Setup for Beginners
Update and
RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($39.99) Get This Book
Google Chrome 72 Released – Install on
RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($39.99) Get This Book
ISO 14001:2015 - Free eBook Download
LINUX EBOOKS
Learn how to be prepared and have a smooth transiti
used for listing the Post x Mail Server Setup Guide for Linux
YES! SIGN ME UP
RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($39.99) Get This Book
Create New
Account in
Ubuntu
By default, as a security
measure, the root account is Commands of Linux or Linux is Fun in Terminal
20 Funny
https://www.tecmint.com/initial-ubuntu-server-setup-guide/ 5/38
3/2/2019 Initial Ubuntu Server Setup for Beginners
completely
RedHat disabled
RHCSA in
and RHCE Certi cation Exam Study Ebook ($39.99) Get This Book
Ubuntu. In order to create a
new account on the system,
log in to the system with the
account user with root
privileges and create a new
account with the below
command.
If this account
RedHat RHCSAwill
andbe
RHCE Certi cation Exam Study Ebook ($39.99) Get This Book
assigned to another system
admin, you can force the
user to change its password
at the rst log in attempt by
issuing the following
command.
$ sudo usermod -a -G su
execution,
RedHat as shown
RHCSA in theCerti cation Exam Study Ebook ($39.99)
and RHCE Get This Book
below example.
$ su - ubuntu_user
$ sudo apt update
processRHCSA
RedHat or whenand
theRHCE
VPS isCerti cation Exam Study Ebook ($39.99) Get This Book
created in the cloud.
However, you should change
the name of your machine in
order to better re ect the
destination of your server or
to better describe its nal
purpose.
In a large company,
machines are named after
complex naming schemes in
order to easily identify the
machine in datacenter’s
racks. For instance, if your
Ubuntu machine will operate
a mail server, the name of
the machine should re ect
this fact and you can setup
machine hostname as
mx01.mydomain.lan, for
example.
$ hostnamectl
20 Funny Commands of Linux or Linux is Fun in Terminal
https://www.tecmint.com/initial-ubuntu-server-setup-guide/ 9/38
3/2/2019 Initial Ubuntu Server Setup for Beginners
In orderRHCSA
RedHat to change
andthe name
RHCE Certi cation Exam Study Ebook ($39.99) Get This Book
of your machine, issue
hostnamectl command with
the new name you will
con gure for your machine,
as illustrated in the below
excerpt.
$ hostname
$ hostname -s
$ cat /etc/hostname
To increase
RedHat system
RHCSA security
and RHCE Certi cation Exam Study Ebook ($39.99) Get This Book
degree of an Ubuntu server,
you should set-up SSH
public key authentication for
an local account. In order to
generate SSH Key Pair, the
public and private key, with a
specifying a key length, such
as 2048 bits, execute the
following command at your
server console.
$ su - ubuntu_user
$ ssh-keygen -t RSA -b
want toRHCSA
RedHat automate
andtasks
RHCEviaCerti cation Exam Study Ebook ($39.99) Get This Book
SSH server.
$ ssh-copy-id remote_us
password
RedHat whileand
RHCSA using SSHCerti cation Exam Study Ebook ($39.99)
RHCE Get This Book
public key authentication.
$ ssh remote_user@remot
$ w
$ exit
remote RHCSA
RedHat SSH server,
and issue
RHCEthe
Certi cation Exam Study Ebook ($39.99) Get This Book
following command.
$ cat ~/.ssh/id_rsa.pub
Secure SSH
Server in Ubuntu
In order to secure the SSH
daemon you should change
the default SSH port number
from 22 to a random port,
higher than 1024, and
disallow remote SSH access
to the root account via
password or key, by opening
SSH server main
con guration le and make
the following changes.
$ sudo vi /etc/ssh/sshd
First, search
RedHat RHCSAtheand
commented
RHCE Certi cation Exam Study Ebook ($39.99) Get This Book
line #Port22 and add a new
line underneath (replace the
listening port number
accordingly):
Port 2345
PermitRootLogin no
number.RHCSA
RedHat The access to rootCerti cation Exam Study Ebook ($39.99)
and RHCE Get This Book
account via SSH should be
restricted.
In orderRHCSA
RedHat to enable
andthis
RHCE Certi cation Exam Study Ebook ($39.99) Get This Book
feature, execute the below
command, which adds the
TMOUT bash variable to
your account .bashrc hidden
le and forces every SSH
connection made with the
name of the user to be
disconnected or dropped-
out after 5 minutes of
inactivity.
$ tail .bashrc
RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($39.99) Get This Book
RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($39.99) Get This Book
RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($39.99) Get This Book
RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($39.99) Get This Book
Set Ubuntu
Server Time
To control or query Ubuntu
server clock and other
related time settings,
execute timedatectl
command with no
argument.
$ sudo timedatectl
$ sudo timedatectl list
$ sudo timedatectl set-
RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($39.99) Get This Book
RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($39.99)
[Time] Get This Book
NTP=0.pool.ntp.org 1.po
FallbackNTP=ntp.ubuntu.
RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($39.99) Get This Book
Disable and
Remove
Unneeded
Services in
Ubuntu
In order to get a list of all
TCP and UDP network
services up-and-running by
default in your Ubuntu
server, execute the ss or
netstat command.
Staring RHCSA
RedHat with Ubuntu 16.10 Certi cation Exam Study Ebook ($39.99)
and RHCE Get This Book
release, the default DNS
resolver is now controlled by
systemd-resolved service,
as revealed by the output of
netstat or ss commands.
The systemd-resolved
service binds on all enabled
network interfaces and
listens on ports 53 and 5355
TCP and UDP.
Running system-resolved
caching DNS daemon on a
production server can be
dangerous due to the
numerous number of DDOS
attacks performed by
malicious hackers against
unsecured DNS servers.
20 Funny Commands of Linux or Linux is Fun in Terminal
https://www.tecmint.com/initial-ubuntu-server-setup-guide/ 25/38
3/2/2019 Initial Ubuntu Server Setup for Beginners
In orderRHCSA
RedHat to stop and
and RHCE
disableCerti cation Exam Study Ebook ($39.99) Get This Book
this service, execute the
following commands.
RedHat RHCSA
$ sudo and RHCE Certi cation Exam Study Ebook ($39.99)
ss -tulpn Get This Book
$ sudo netstat -tulpn
$ sudo systemctl reboot
$ sudo ps aux
$ sudo top
$ sudo pstree
RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($39.99) Get This Book
RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($39.99) Get This Book
If You Appreciate
What We Do Here On
TecMint, You Should
Consider:
1. Stay Connected to: Twitter |
5. Support us by purchasing
RedHat RHCSAMatei
and Cezar
RHCE Certi
View cation Exam Study Ebook ($39.99)
all Posts Get This Book
I'am a computer
addicted guy, a fan of open
source and linux based system
software, have about 4 years
experience with Linux
distributions desktop, servers
and bash scripting.
2 0 0
13 RESPONSES
Comments 13 Pingbacks 0
Thanks
Reply
Ravi Saive
November 28, 2018 at 10:15 am
@Tal,
Ravi Saive
July 10, 2018 at 12:10 pm
@Brent,
Brent Norris
July 17, 2018 at 4:40 am
I will try this later this
evening but a couple of
questions on the $ssh-
copy-id
remote_user@remote_se
is the remote_server
supposed to be the ip
address of the remote
server or just
remote_server?
20I Funny
am newCommands
to the Linux.of Linux or Linux is Fun in Terminal
https://www.tecmint.com/initial-ubuntu-server-setup-guide/ 32/38
3/2/2019 Initial Ubuntu Server Setup for Beginners
Reply
RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($39.99) Get This Book
Ravi Saive
July 17, 2018 at
11:25 am
@Brent,
Brent Norris
July 18, 2018 at 11:31
am
Ok yes i have set the
host name as brentcpr-
server
$ hostname
$ hostname -s
output is brentcpr-
server.
When I to the ssh-copy-
id
remote_user@remote_se
it says ERROR: failed to
copy ID le
/home/bjn/.pub : No
such le to install the
contents of
/home/bjn/.pub anyway
look at the -f option.
Reply
Ravi Saive
July 18, 2018 at
12:02 pm
@Brent,
It seems the
path is not of Linux or Linux is Fun in Terminal
20 Funny Commands
https://www.tecmint.com/initial-ubuntu-server-setup-guide/ 33/38
3/2/2019 Initial Ubuntu Server Setup for Beginners
correct, if you
RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($39.99) Get This Book
could try again
generating SSH
Key Pair using
following
commands.
$ su - ubuntu_user
$ ssh-keygen -t RSA -b 2048
$ ssh-copy-id remote_user@remote_server
Reply
Brent
Norris
July
19, 2018
at 2:38
am
Thank
you for
your
help, I
was
nally
able to
get
past
that
part, I
think,
not on
the part
that
says.
$ cat ~/.ssh/id_rsa.pub
It says
no such
le or
directory
Ravi
Saive
July
19, 2018
20 Funny Commands of Linux or Linux is Fun in Terminal
https://www.tecmint.com/initial-ubuntu-server-setup-guide/ 34/38
3/2/2019 Initial Ubuntu Server Setup for Beginners
at 10:18
RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($39.99) Get This Book
am
@Brent,
That’s
really
great to
hear,
that you
solved
yourself
Brent
Norris
July
19, 2018
at 3:09
am
Also
after
that,
$ sudo ufw status verbose
mine shows as
TO Action From
2345/tcp allow anywhere
80 allow anywhere
Anywhere allow 25,443/tcp
2345/tcp (v6) allow Anywhere (v6)
80 (v6) allow Anywhere (v6)
Anywhere (v6) allow 25,443/tcp (v6)
I have
went on
to
follow
the rest
of the
instructi
listed
and will
stop
here,
until I
can get
20 Funny Commands of Linux or Linux is Fun in Terminal
https://www.tecmint.com/initial-ubuntu-server-setup-guide/ 35/38
3/2/2019 Initial Ubuntu Server Setup for Beginners
the
RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($39.99) Get This Book
other
problem
gured
out and
this
one.
Again
thanks
for any
and all
the
help.
Ravi
Saive
July
19, 2018
at 10:18
am
@Brent,
UFW is
in
active
state,
means
running
ne..
Comment
RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($39.99) Get This Book
Name * Email *
Website
Post Comment
Install Glances, In uxDB and Shilpa Nair Shares Her 8 Best Video Editing
Grafana to Monitor CentOS Interview Experience on Softwares I Discovered for
7 RedHat Linux Package Linux
Management
How to Monitor User Activity 9 Best File Comparison and
with psacct or acct Tools 10 MySQL Database Difference (Diff) Tools for
Interview Questions for Linux
CloudStats.me – Monitors Beginners and
Your Linux Servers and Intermediates
20 Funny Commands of Linux or Linux is Fun in Terminal
https://www.tecmint.com/initial-ubuntu-server-setup-guide/ 37/38
3/2/2019 Initial Ubuntu Server Setup for Beginners
Tecmint: Linux Howtos, Tutorials & Guides © 2019.
All Rights Reserved.
The material in this site cannot be republished
either online or o ine, without our permission.