neale / sshcd

Connect with SSH and cd (change directory) with one command.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sshcd

Tired of having to type this janky command to ssh and cd into unfamiliar remote servers?

ssh -t user@fraction.io "cd /foo/bar; exec \$SHELL --login"

Stop it. Connect with SSH and cd (change directory) with one command.

sshcd user@fraction.io:/foo/bar

Installation

Use Homebrew to download and install the executable.

brew tap fraction/homebrew-formulae
brew install sshcd

Add the executable into your path and give it permissions.

sudo curl -Lo /usr/local/bin/sshcd http://git.io/wfAXEQ
sudo chmod +x /usr/local/bin/sshcd

Usage

The default usage is pretty simple.

sshcd user@fraction.io:/foo/bar

The tool supports prepended flags, too!

sshcd -v user@fraction.io:/foo/bar

Support

Please open an issue for questions and concerns.

Contributing

Fork the project, commit your changes, and open a pull request.

About

Connect with SSH and cd (change directory) with one command.

License:Other


Languages

Language:Makefile 86.0%Language:Shell 14.0%