https://github.com/irezaul/devops
https://github.com/irezaul/devops
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/irezaul/devops
- Owner: irezaul
- Created: 2021-06-14T13:22:40.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-18T08:17:57.000Z (over 4 years ago)
- Last Synced: 2025-01-12T21:12:32.751Z (12 months ago)
- Size: 16.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#
### Run New VM-Machine
##### * first install
```bash
sudo apt-get update
```
##### 2nd Process- on Serverpc
```bash
sudo apt install sshd
sudo apt install openssh-server
```
##### 3rd check sshd status
```bash
systemctl status sshd
```
##### 4th Enable ssh connection
```bash
systemctl enable ssh
```
##### now configure sshd_config
##### go to
```bash
nano /etc/ssh/sshd_config
```
#### Uncomment the port 22 & PermitRootLogin yes
```bash
uncomment port 22
PermitRootLogin yes
```

#### change the hostname
```bash
sudo hostnamectl set-hostname master-node
```
#### if not change hostname follow the step
```bash
nano /etc/gdm3/custom.conf
```
> type `AllowRoot=true`
> then
```bash
nano /etc/pam.d/gdm-password
```
> uncomment the `Auth Required`

> save & reboot
#### Now use again the change the hostname
```bash
sudo hostnamectl set-hostname master-node
```