Skip to content

gt53/sshprep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

sshprep

A shell script to prepare a host for an ssh session by scp'ing handy files like dotfiles from the local machine to the host.

Usage

sshprep can be invoked as a command by sourcing the script from .bashrc.

Setup

Put sshprep.sh on the local system somewhere such as ~/.sshprep.sh.

In ~/.bashrc, configure the files to scp and then source sshprep:

if [ -f "$HOME/.sshprep.sh" ]; then
  declare -a sshprep_files=(
    "$HOME/.bashrc"
    "$HOME/.tmux.conf"
    "$HOME/.vimrc"
  )
  . "$HOME/.sshprep.sh"
fi

Run

To prepare and then connect to a host with the IP address 10.1.2.3:

$ sshprep 10.1.2.3

About

Prepare a host for an ssh session

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages