Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SSHServer ¶
type SSHServer struct {
// contains filtered or unexported fields
}
func NewSSHServer ¶
func (*SSHServer) Start ¶
StartSSHServer starts starts sshd process using image linuxserver/openssh-server.DockerRunSSH The server opnes up port 2222 with the following command
docker create \ --name=test-sshd \ -e PUBLIC_KEY_FILE=$HOME/.ssh/id_rsa.pub \ -e USER_NAME=$USER \ -e SUDO_ACCESS=true \ -p 2222:2222 \ -v $HOME/.ssh:/config linuxserver/openssh-server
Click to show internal directories.
Click to hide internal directories.