3 Commits
1.1 ... 1.2

Author SHA1 Message Date
Ryan Michela
956f0cc3ef Changed * to all 2014-09-04 23:01:47 -07:00
Ryan Michela
027605e743 Renamed "host" to "listenAddress" 2014-08-17 22:41:53 -07:00
Ryan Michela
be9c53bf6f Added specific interface binding 2014-08-03 13:20:00 -07:00
4 changed files with 9 additions and 4 deletions

View File

@@ -6,7 +6,7 @@
<groupId>com.ryanmichela</groupId>
<artifactId>SSHD</artifactId>
<version>1.1</version>
<version>1.2</version>
<url>http://dev.bukkit.org/server-mods/sshd/</url>
<!-- Repositories -->

View File

@@ -35,6 +35,8 @@ public class SshdPlugin extends JavaPlugin {
sshd = SshServer.setUpDefaultServer();
sshd.setPort(getConfig().getInt("port", 22));
String host = getConfig().getString("listenAddress", "all");
sshd.setHost(host.equals("all") ? null : host);
File hostKey = new File(getDataFolder(), "hostkey");
File authorizedKeys = new File(getDataFolder(), "authorized_keys");

View File

@@ -1,4 +1,7 @@
# This is the port the SSH server will listen on.
# The IP addresses(s) the SSH server will listen on. Use a comma separated list for multiple addresses.
# Leave as "all" for all addresses.
listenAddress: all
# The port the SSH server will listen on.
port: 22
# By default, only public key authentication is enabled. This is the most secure mode.
@@ -9,4 +12,4 @@ port: 22
# For less secure username and password based authentication, complete the sections below.
credentials:
# user1: password1
# user2: password2
# user2: password2

View File

@@ -1,4 +1,4 @@
name: SSHD
version: "1.1"
version: "1.2"
author: Ryan Michela
main: com.ryanmichela.sshd.SshdPlugin