ssh2docksal

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2018 License: MIT Imports: 12 Imported by: 0

README

Latest Release Build Status

alt text

ssh2docksal

Andock ssh2docksal is a simple ssh server which connects you directly to your docksal container via ssh.

Samples:

Connect to the cli container of projectname

    ssh projectname@localhost -p 2222

Connect to the db container of projectname

    ssh projectname--db@localhost -p 2222

Usage without authorization:

E.g. To connect phpStorm via ssh.

docker run \
-d \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /usr/bin/docker:/usr/bin/docker \
--name ssh2docksal \
-p 192.168.64.100:2222:2222 andockio/ssh2docksal --auth-type=noauth

Usage with authorization:

E.g. for your sandbox server.

docker run \
-d \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /usr/bin/docker:/usr/bin/docker \
-v ${HOME}/.ssh/authorized_keys:/root/.ssh/authorized_keys \
--name ssh2docksal \
-p 192.168.64.100:2222:2222 andockio/ssh2docksal

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoAuth

func NoAuth() ssh.Option

NoAuth for no authentification. Be careful!

func PublicKeyAuth

func PublicKeyAuth(authorizedKeysFile string) ssh.Option

PublicKeyAuth perform public key authentification

func SSHHandler

func SSHHandler()

SSHHandler handles the ssh connection

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL