Unleash the Awesome Power of SSH
Автор: Joe Collins (EzeeLinux)
Загружено: 2025-10-11
Просмотров: 5163
This video shows how to setup ssh on your home network.
Unleash The Awesome Power of SSH
Terms
DNS = Domain Name System
DHCP = Dynamic Host Configuration Protocol
IP = Internet Protocol
LAN = Local Area Network
SFTP = SSH File Transfer Protocol
SSHFS SSH File System
SSH = Secure Shell
Setup Static IP Addresses for Host Machines
Find IP and netmask:
ip a
or
ifconfig
ex. 192.168.0.xxx/24 (24 = 255.255.255.0 netmask)
Find default gateway:
route -n
ex. 192.168.0.1
install SSH Server on Debian/Ubuntu Systems:
sudo apt install openssh-server
Generate SSH Keys:
ssh-keygen -t rsa -b 4096 -C "your name or email."
Copy public key to remote host:
ssh-copy-id user@remote_host
Note: You can copy key pairs directly to new hosts to facilitate sign in to other machines on the network.
Using SFTP:
sftp user@remote_host
ls = list the directory on the remote machine
lls = lists the directory on the local machine
cd = change directory on the remote machine
lcd = change directory on the local machine
get filename1 filename2 = get files from remote machine
get -r directoryname = get a directory from the remote machine
put filename1 filename2 = send files to the remote machine
put -r directoryname = send a directory to the remote machine
bye, exit = leaves SFTP and breaks the connection.
RSYNC over SSH
rsync -av --delete source_directory/ destination_directory.
ex. rsync -av --delete [email protected]:Music/ Music/
Using SSHFS
Install SSHFS on Debian/Ubuntu systems with:
sudo apt install sshfs
create a network share by mounting a directory from the remote host to an empty directory on the local host:
sshfs user@remote_host:directory_path local_directory
SSHIN
#!/bin/bash
SSH login shorthand command: "sshin (last two digits of IP)"
By Joe Collins.
ssh -X 192.168.0."$1"
SFTPIN
#!/bin/bash
SFTP Shorthand command: "sftpin" (last two digits of host IP)
By Joe Collins.
sftp 192.168.0."$1"
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: