mirror of
https://github.com/mayfrost/guides.git
synced 2024-10-31 23:16:06 +00:00
Update NETWORKING.md
This commit is contained in:
parent
92f639089d
commit
70266d0fe3
@ -1,5 +1,13 @@
|
|||||||
# NETWORKING
|
# NETWORKING
|
||||||
|
|
||||||
|
## SETUP
|
||||||
|
|
||||||
|
## /etc/network/interfaces
|
||||||
|
```
|
||||||
|
# use last 8 octets for hosts
|
||||||
|
255.255.255.0
|
||||||
|
```
|
||||||
|
|
||||||
## WiFi
|
## WiFi
|
||||||
|
|
||||||
Use WiFi without a separate network manager with this simple guide. Needs "_dhcpcd_" or "_dhcpclient_", "_net-tools_" or "_iproute2_", "_wpa\_supplicant_", and the WiFi drivers for your wireless card (like "_iwlwifi_" and its "_ucode_"), which in part can be installed from a package usually named "_linux-firmware_", but they may not be complete (this provides "_ucode_" but not "_iwlwifi_").
|
Use WiFi without a separate network manager with this simple guide. Needs "_dhcpcd_" or "_dhcpclient_", "_net-tools_" or "_iproute2_", "_wpa\_supplicant_", and the WiFi drivers for your wireless card (like "_iwlwifi_" and its "_ucode_"), which in part can be installed from a package usually named "_linux-firmware_", but they may not be complete (this provides "_ucode_" but not "_iwlwifi_").
|
||||||
@ -110,10 +118,13 @@ You can save either example in a script to activate the Wi-Fi whenever you want.
|
|||||||
`nmap --iflist IP_NUMBER`
|
`nmap --iflist IP_NUMBER`
|
||||||
|
|
||||||
### SSH
|
### SSH
|
||||||
|
#### CLIENT
|
||||||
* login to remote host
|
* login to remote host
|
||||||
`ssh ADDRESS`
|
`ssh ADDRESS`
|
||||||
* login to remote host as user USER
|
* login to remote host as user USER
|
||||||
`ssh USER@ADDRESS`
|
`ssh USER@ADDRESS`
|
||||||
|
|
||||||
|
#### SERVER
|
||||||
* set ssh server configuration in /etc/ssh/sshd_config
|
* set ssh server configuration in /etc/ssh/sshd_config
|
||||||
```
|
```
|
||||||
Port 22 # default port is 22, can be changed
|
Port 22 # default port is 22, can be changed
|
||||||
@ -121,9 +132,3 @@ PermitRootLogin without-password # change "without-password" to "no" to forbid r
|
|||||||
AllowUsers USER_NAME # by allowing a specific user it restricts the others
|
AllowUsers USER_NAME # by allowing a specific user it restricts the others
|
||||||
```
|
```
|
||||||
* restart "ssh" service to activate changes
|
* restart "ssh" service to activate changes
|
||||||
|
|
||||||
## /etc/network/interfaces
|
|
||||||
```
|
|
||||||
# use last 8 octets for hosts
|
|
||||||
255.255.255.0
|
|
||||||
```
|
|
||||||
|
Loading…
Reference in New Issue
Block a user