Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Changing ssh port #10

Copy link
Copy link
@edtechdev

Description

@edtechdev
Issue body actions

In the Xeoncross fork (https://github.com/Xeoncross/lowendscript/blob/master/setup-debian.sh),
where it is creating the /etc/xinetd.d/dropbear file, you can add these 2 lines to set a different port for ssh than 22:

port = $1
type = unlisted

along with an earlier check for a port passed as an argument:

    if [ -z "$1" ]
    then
        die "Usage: `basename $0` optimize <ssh-port-#>"
    fi

and pass that argument from the optimize function to the install_dropbear function:

optimize)
    install_dropbear $2

Another way to change the port apparently is to edit the /etc/default/dropbear file.

But I noticed the Keith2 port (https://github.com/Keith2/lowendscript/blob/master/setup-debian.sh )
uses the same method, too (setting port=value and also type=unlisted).

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.