A Look at SSH(in) and SFTP(in)

preview_player
Показать описание
This video is about a couple of shortcut scripts I use with SSH to access machines on my local network. The scripts are below. :)

Scripts for sshin and sftpin:

#!/bin/bash

# SSH login shorthand command: "sshin (last two digits of IP)"

ssh -X 192.168.0."$1"

#!/bin/bash

# SFTP Shorthand command: "sftpin" (last two digits of host IP)

sftp 192.168.0."$1"
Рекомендации по теме
Комментарии
Автор

This is something I always curious about. Thanks 🙂
P.S. sftp client is installed by default on Fedora

ShaunakHub
Автор

The DHCP issue (among others like privacy) is why I still prefer to run routers not from the ISP. Even if one is forced to use a provided router you can still connect another more feature rich one. Plus the ISP can not see all your devices unlike their own routers that provide them full access. No thanks!

cyberwebsolutions
Автор

You can also use mDNS on the server. Then it will announce the name each time it starts on our local network.

Doesn't most home router use the dnsmasq? Then it should have a dns service there.

Or just install OpenWRT firmware if your router are supported.

AndersJackson
Автор

If you're running something like a pihole on your network, won't that give you local DNS resolution?

SlideRSB
Автор

You do some of the same "stupid" things I do, I don't feel so bad... Lol's

MichaelAMalone