main
ROOT /
pages /
ssh-guide.md
21 lines | ISO-8859-1 | 1 KB

SSH Setup (since 3.1)


Expose SSH port

  • If you are running OneDev as docker container, pull latest image, and restart the container with below commands:

    docker pull 1dev/server
    docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd)/onedev:/opt/onedev -p 6610:6610 -p 6611:6611 1dev/server
    

    Here port 6611 will be used for SSH access

  • If you are deploying OneDev into Kubernetes, follow the guide to download k8s-resources.zip for 3.1 or higher and redeploy. The default exposed port for SSH access is 22 and it can be configured via <k8s resources dir>/base/services.yaml
  • If you are running OneDev on bare metal machine, ssh support will be available after upgrading to 3.1. Default SSH port is 6611 and it can be configured via <OneDev install dir>/conf/server.properties

SSH setting

  • SSH server url

    SSH clone url for various projects is constructed by concatenating project name to SSH server url. In case you want to change the SSH server url, login as administrator and navigate to menu Administration / SSH Setting

  • Server private key

    To talk with SSH client securely, SSH server needs a private key. OneDev generates one automatically for convenience. In case you want to change it, login as administrator and navigate to menu Administration / SSH Setting

Please wait...
Page is in error, reload to recover