dev-resources.site
for different kinds of informations.
Allow Root Access SSH on Ubuntu 20.04
Published at
11/24/2023
Categories
linux
ubuntu
ssh
administrator
Author
seno21
Author
6 person written this
seno21
open
Postingan ini akan membahas remote ssh dengan user root pada ubuntu.
By default ubuntu tidak memberikan akses root untuk alasan keamanan. Tetapi kadang hal ini sedikit merepotkan ketika melakukan konfigurasi server via ssh. Sebenarnya ssh bisa kita setting agar dapat di remot melalui user root.
berikut cara konfigurasinya:
Edit file sshd_config
nano /etc/ssh/sshd_config
Kemudian ubah pada bagian port
dan permitlogin
Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key
# Ciphers and keying
#RekeyLimit default none
# Logging
#SyslogFacility AUTH
#LogLevel INFO
# Authentication:
#LoginGraceTime 2m
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
Simpan ctrl+o
dan keluar ctrl+x
, lalu set password untuk root user.
passwd root
Masukan passwordnya, setelah itu restart service ssh dan buat autostart service ketika server reboot
systemctl restart ssh
systemctl enable ssh
Lakukan testing dari pc lain dengan user root dan password yang telah di set
Selamat mencoba.
administrator Article's
16 articles in total
How I Passed the Salesforce Admin Exam: A Comprehensive Guide
read article
Get Started with Salesforce Administrator Certification Prep
read article
How to Become a Firewall Administrator: A Comprehensive Guide
read article
Mastering SysOps: Essential Skills Every Administrator Should Know
read article
Fundamentals of Transact-SQL (T-SQL) Queries
read article
Essential Database Concepts Explained
read article
Publish HTTPS Local Server Using Cloudflare
read article
Allow Root Access SSH on Ubuntu 20.04
currently reading
How do you configure user accounts and permissions in Azure Active Directory?🔐
read article
What are the best practices for managing a Microsoft 365 tenant?
read article
Are Database Administrators in Demand ?
read article
Insights from the AZ-104 BootCamp session - Week 3
read article
Insights from the AZ-104 BootCamp session - Week 2
read article
Beginner's guide to Azure core Fundamentals
read article
tool for helping getting strings to any device with a browser
read article
[PT-BR] Conhecendo o DBeaver
read article
Featured ones: