Skip to content

Shogun8/ShellScripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

Bash

My collection of bash scripts that I use to make common tasks in the shell a little easier


regenS.SH

This porgram is an easy way to delete old IP addresses and cruft from the known_hosts file after a failed connection (probably due due to a mac address change, or an IP address change). This progam can be used either with an IP addrress as an argument or without any argumants at all (in which case it will check your current shell's history for the IP addressed used in the most recent command), and remove that address from the known_hosts file.

To configure this for easy usage, just make an alias that points to this file

alias regenssh=~/ShellScripts/regenS.SH

Then to use this script, call it with or without an IP address as an argument

regenssh 8.8.8.8

or simply

regenssh

About

My collection of bash scripts stored in my scripts folder

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages