├── sshd-cli └── src │ ├── main │ └── resources │ │ └── .gitignore │ └── test │ └── resources │ └── .gitignore ├── sshd-contrib └── src │ ├── main │ └── resources │ │ └── .gitignore │ └── test │ └── resources │ └── org │ └── apache │ └── sshd │ └── contrib │ └── common │ └── signature │ ├── ssh-dss-1024 │ └── ssh-dss-2048 ├── sshd-openpgp └── src │ ├── main │ └── resources │ │ └── .gitignore │ └── test │ └── resources │ ├── kbx2ring │ ├── pubring.kbx │ ├── trustdb.gpg │ └── private-keys-v1.d │ │ ├── 30F6173E98A6D0AF0C72CF8C0F1C452CAE49CA29.key │ │ └── D1DEB8CA8D7DB9DCA3A2F6D02891F4B771628949.key │ ├── keyring │ ├── pubring.gpg │ ├── random_seed │ ├── secring.gpg │ └── trustdb.gpg │ └── org │ └── apache │ └── sshd │ └── openpgp │ ├── ed25519-gpg4win-3.1.3.asc │ ├── super-secret-passphrase-ed25519-gpg4win-3.1.3.gpg │ ├── EC-256-gpg2-public.asc │ ├── RSA-2048-v1p6p1-public.asc │ ├── super-secret-passphrase-EC-256-gpg2-private.gpg │ └── EC-521-gpg2-public.asc ├── sshd-putty └── src │ ├── main │ └── resources │ │ └── .gitignore │ └── test │ └── resources │ ├── .gitignore │ └── org │ └── apache │ └── sshd │ └── putty │ ├── PuttyKeyUtilsTest-ssh-ed25519-KeyPair.ppk │ ├── super-secret-passphrase-AES-256-CBC-ssh-ed25519-KeyPair.ppk │ ├── PuttyKeyUtilsTest-ecdsa-sha2-nistp256-KeyPair.ppk │ ├── super-secret-passphrase-AES-256-CBC-ecdsa-sha2-nistp256-KeyPair.ppk │ ├── PuttyKeyUtilsTest-ecdsa-sha2-nistp384-KeyPair.ppk │ ├── super-secret-passphrase-AES-256-CBC-ecdsa-sha2-nistp384-KeyPair.ppk │ ├── PuttyKeyUtilsTest-ecdsa-sha2-nistp521-KeyPair.ppk │ ├── super-secret-passphrase-AES-256-CBC-ecdsa-sha2-nistp521-KeyPair.ppk │ ├── PuttyKeyUtilsTest-ssh-dss-KeyPair.ppk │ ├── super-secret-passphrase-AES-256-CBC-ssh-dss-KeyPair.ppk │ ├── PuttyKeyUtilsTest-ssh-rsa-KeyPair.ppk │ └── super-secret-passphrase-AES-256-CBC-ssh-rsa-KeyPair.ppk ├── sshd-ldap └── src │ └── main │ └── resources │ └── .gitignore ├── sshd-core ├── .gitignore └── src │ ├── test │ └── resources │ │ └── org │ │ └── apache │ │ └── sshd │ │ ├── client │ │ ├── opensshcerts │ │ │ ├── ca │ │ │ │ ├── ca_ed25519.pub │ │ │ │ ├── ca_ecdsa_256.pub │ │ │ │ ├── ca_ecdsa_384.pub │ │ │ │ ├── ca_ecdsa_256 │ │ │ │ ├── ca_ecdsa_521.pub │ │ │ │ ├── ca_ecdsa_384 │ │ │ │ ├── ca_ecdsa_521 │ │ │ │ ├── ca_ed25519 │ │ │ │ ├── ca.pub │ │ │ │ ├── ca_rsa2_256.pub │ │ │ │ └── ca_rsa2_512.pub │ │ │ ├── user │ │ │ │ ├── user01_ed25519.pub │ │ │ │ ├── user02_ed25519.pub │ │ │ │ ├── certificateoptions │ │ │ │ │ ├── user_ed25519.pub │ │ │ │ │ ├── user_ecdsa_256.pub │ │ │ │ │ ├── user_ecdsa_384.pub │ │ │ │ │ ├── user_ecdsa_521.pub │ │ │ │ │ ├── user_ed25519 │ │ │ │ │ ├── user_ecdsa_256 │ │ │ │ │ ├── user_ecdsa_384 │ │ │ │ │ ├── user_rsa_sha2_256_4096.pub │ │ │ │ │ ├── user_rsa_sha2_512_4096.pub │ │ │ │ │ └── user_ecdsa_521 │ │ │ │ ├── user01_ecdsa_256.pub │ │ │ │ ├── user02_ecdsa_256.pub │ │ │ │ ├── user01_ecdsa_384.pub │ │ │ │ ├── user02_ecdsa_384.pub │ │ │ │ ├── user01_ecdsa_256 │ │ │ │ ├── user02_ecdsa_256 │ │ │ │ ├── user01_ecdsa_521.pub │ │ │ │ ├── user02_ecdsa_521.pub │ │ │ │ ├── user01_ecdsa_384 │ │ │ │ ├── user02_ecdsa_384 │ │ │ │ ├── user01_ecdsa_521 │ │ │ │ ├── user02_ecdsa_521 │ │ │ │ ├── user01_rsa_sha2_256_2048.pub │ │ │ │ ├── user01_rsa_sha2_512_2048.pub │ │ │ │ ├── user02_rsa_sha2_256_2048.pub │ │ │ │ ├── user02_rsa_sha2_512_2048.pub │ │ │ │ ├── user01_ed25519 │ │ │ │ ├── user02_ed25519 │ │ │ │ ├── user01_rsa_sha2_256_4096.pub │ │ │ │ ├── user01_rsa_sha2_512_4096.pub │ │ │ │ ├── user02_rsa_sha2_256_4096.pub │ │ │ │ └── user02_rsa_sha2_512_4096.pub │ │ │ ├── docker │ │ │ │ ├── supervisord.conf │ │ │ │ ├── sshd_config │ │ │ │ └── entrypoint.sh │ │ │ └── host │ │ │ │ ├── host01.pub │ │ │ │ └── host02.pub │ │ └── auth │ │ │ └── pubkey │ │ │ └── entrypoint.sh │ │ ├── common │ │ ├── kex │ │ │ └── extensions │ │ │ │ └── client │ │ │ │ ├── entrypoint.sh │ │ │ │ └── bob_key.pub │ │ ├── auth │ │ │ ├── super-secret-passphrase-ec256-key.pub │ │ │ └── super-secret-passphrase-ec256-key │ │ └── signature │ │ │ ├── ssh_host_rsa_key.pub │ │ │ └── example-ca.pub │ │ └── server │ │ └── config │ │ └── keys │ │ ├── ssh_host_ecdsa_key │ │ └── ssh_host_dsa_key │ └── main │ ├── filtered-resources │ └── org │ │ └── apache │ │ └── sshd │ │ └── common │ │ └── kex │ │ ├── group1.prime │ │ └── group2.prime │ └── java │ └── org │ └── apache │ └── sshd │ ├── agent │ └── SshAgentServer.java │ ├── server │ ├── channel │ │ └── ServerChannelSessionHolder.java │ ├── command │ │ ├── AsyncCommand.java │ │ ├── AsyncCommandStreamsAware.java │ │ └── CommandDirectStreamsAware.java │ ├── session │ │ ├── ServerProxyAcceptorHolder.java │ │ └── ServerSessionHolder.java │ └── x11 │ │ └── X11ForwardingExceptionMarker.java │ ├── common │ ├── channel │ │ ├── ChannelHolder.java │ │ ├── ChannelIdentifier.java │ │ └── AbstractChannelRequestHandler.java │ ├── FactoryManagerHolder.java │ └── kex │ │ ├── CurveSizeIndicator.java │ │ └── extension │ │ └── KexExtensionHandlerManager.java │ └── client │ └── session │ ├── ClientProxyConnectorHolder.java │ └── ClientSessionHolder.java ├── sshd-mina ├── .gitignore └── src │ ├── test │ └── resources │ │ └── .gitignore │ └── main │ └── resources │ └── META-INF │ └── services │ └── org.apache.sshd.common.io.IoServiceFactoryFactory ├── sshd-netty ├── .gitignore └── src │ ├── test │ ├── resources │ │ └── .gitignore │ └── java │ │ └── org │ │ └── apache │ │ └── sshd │ │ └── netty │ │ └── NettyTest.java │ └── main │ └── resources │ └── META-INF │ └── services │ └── org.apache.sshd.common.io.IoServiceFactoryFactory ├── sshd-scp └── src │ ├── main │ └── resources │ │ └── .gitignore │ └── test │ └── resources │ └── org │ └── apache │ └── sshd │ └── scp │ └── client │ ├── entrypoint.sh │ └── bob_key.pub ├── sshd-sftp └── src │ ├── test │ └── resources │ │ ├── .gitignore │ │ └── org │ │ └── apache │ │ └── sshd │ │ └── sftp │ │ └── client │ │ ├── ed25519_key.pub │ │ ├── rsa_key.pub │ │ └── ed25519_key │ └── main │ ├── filtered-resources │ └── META-INF │ │ └── services │ │ ├── java.nio.file.spi.FileSystemProvider │ │ └── org.apache.sshd.server.subsystem.SubsystemFactory │ └── java │ └── org │ └── apache │ └── sshd │ └── sftp │ ├── client │ └── SftpClientHolder.java │ └── server │ ├── SftpFileSystemAccessorManager.java │ ├── SftpSubsystemProxy.java │ └── DefaultUserPrincipal.java ├── sshd-spring-sftp └── src │ ├── main │ └── resources │ │ └── .gitignore │ └── test │ └── resources │ └── .gitignore ├── sshd-sources └── tomcat-apr-5.5.23-sources │ ├── README.txt │ ├── META-INF │ ├── MANIFEST.MF │ └── INDEX.LIST │ └── org │ └── apache │ └── tomcat │ └── jni │ ├── Thread.java │ ├── PoolCallback.java │ ├── PasswordCallback.java │ ├── ProcErrorCallback.java │ ├── Sockaddr.java │ ├── BIOCallback.java │ ├── Local.java │ ├── FileInfo.java │ ├── Global.java │ ├── Multicast.java │ ├── Mmap.java │ ├── SSLSocket.java │ ├── Shm.java │ ├── Directory.java │ └── Stdlib.java ├── sshd-benchmarks └── src │ └── main │ ├── resources │ └── org │ │ └── apache │ │ └── sshd │ │ └── benchmarks │ │ ├── ed25519_key.pub │ │ ├── disable_force_command.sh │ │ ├── rsa_key.pub │ │ └── ed25519_key │ └── java │ └── org │ └── apache │ └── sshd │ └── benchmarks │ └── README.md ├── .mvn ├── maven.config └── wrapper │ └── maven-wrapper.properties ├── docs └── changes │ ├── 2.13.1.md │ ├── 2.5.1.md │ ├── 2.13.2.md │ ├── 2.12.1.md │ ├── 2.9.1.md │ └── 2.15.0.md ├── sshd-common └── src │ ├── test │ └── resources │ │ └── org │ │ └── apache │ │ └── sshd │ │ ├── common │ │ ├── config │ │ │ └── keys │ │ │ │ └── loader │ │ │ │ ├── openssh │ │ │ │ ├── ED25519-KeyPair.pub │ │ │ │ ├── encrypted-ED25519-KeyPair.pub │ │ │ │ ├── encrypted-ECDSA-KeyPair.pub │ │ │ │ ├── ECDSA-KeyPair.pub │ │ │ │ ├── ed25519_priv │ │ │ │ ├── ED25519-KeyPair │ │ │ │ ├── ed25519_priv.aes │ │ │ │ ├── encrypted-ED25519-KeyPair │ │ │ │ ├── ed25519_priv.gcm │ │ │ │ ├── ed25519_priv.cha │ │ │ │ ├── encrypted-RSA-KeyPair.pub │ │ │ │ ├── encrypted-DSA-KeyPair.pub │ │ │ │ ├── DSA-KeyPair.pub │ │ │ │ ├── encrypted-ECDSA-KeyPair │ │ │ │ ├── RSA-KeyPair.pub │ │ │ │ └── ECDSA-KeyPair │ │ │ │ ├── ssh2 │ │ │ │ ├── ssh-ed25519-PublicKey.pub │ │ │ │ ├── ecdsa-sha2-nistp256-PublicKey.pub │ │ │ │ ├── ssh-ed25519-PublicKey.ssh2 │ │ │ │ ├── ecdsa-sha2-nistp384-PublicKey.pub │ │ │ │ ├── ecdsa-sha2-nistp521-PublicKey.pub │ │ │ │ ├── ecdsa-sha2-nistp256-PublicKey.ssh2 │ │ │ │ ├── ecdsa-sha2-nistp384-PublicKey.ssh2 │ │ │ │ ├── rfc4716-multiple-headers.ssh2 │ │ │ │ ├── ecdsa-sha2-nistp521-PublicKey.ssh2 │ │ │ │ ├── ssh-dss-PublicKey.pub │ │ │ │ ├── ssh-rsa-PublicKey.pub │ │ │ │ ├── ssh-dss-PublicKey.ssh2 │ │ │ │ ├── rfc4716-multi-line-comment.ssh2 │ │ │ │ └── ssh-rsa-PublicKey.ssh2 │ │ │ │ └── pem │ │ │ │ ├── pkcs8-eddsa.pem │ │ │ │ ├── pkcs8-eddsa.enc │ │ │ │ ├── pkcs8-ec-256.pem │ │ │ │ ├── pkcs8-eddsa.enc2 │ │ │ │ ├── pkcs8-ec-384.pem │ │ │ │ ├── pkcs8-ec-256.enc │ │ │ │ ├── pkcs8-dsa-512.pem │ │ │ │ ├── pkcs8-ec-521.pem │ │ │ │ ├── pkcs8-ec-384.enc │ │ │ │ ├── pkcs8-ec-256.enc2 │ │ │ │ ├── pkcs8-dsa-768.pem │ │ │ │ ├── pkcs8-ec-521.enc │ │ │ │ ├── pkcs8-ec-384.enc2 │ │ │ │ ├── pkcs8-dsa-512.enc2 │ │ │ │ ├── pkcs8-dsa-512.enc │ │ │ │ ├── pkcs8-dsa-1024.pem │ │ │ │ ├── pkcs8-ec-521.enc2 │ │ │ │ ├── pkcs8-dsa-768.enc2 │ │ │ │ ├── pkcs8-dsa-768.enc │ │ │ │ ├── pkcs8-dsa-1024.enc2 │ │ │ │ ├── pkcs8-dsa-1024.enc │ │ │ │ ├── pkcs8-rsa-1024.pem │ │ │ │ ├── pkcs8-rsa-1024.enc │ │ │ │ └── pkcs8-rsa-1024.enc2 │ │ ├── util │ │ │ └── security │ │ │ │ ├── EDDSAProviderTest-EDDSA-OpenSSH-KeyPair.pub │ │ │ │ ├── SecurityUtilsTest-EC-256-KeyPair.pub │ │ │ │ ├── SecurityUtilsTest-EC-384-KeyPair.pub │ │ │ │ ├── SecurityUtilsTest-EC-256-KeyPair │ │ │ │ ├── SecurityUtilsTest-EC-521-KeyPair.pub │ │ │ │ ├── SecurityUtilsTest-EC-384-KeyPair │ │ │ │ ├── SecurityUtilsTest-EC-521-KeyPair │ │ │ │ ├── super-secret-passphrase-RSA-AES-256-key.pub │ │ │ │ ├── super-secret-passphrase-RSA-AES-128-key.pub │ │ │ │ ├── SecurityUtilsTest-RSA-KeyPair.pub │ │ │ │ ├── super-secret-passphrase-RSA-AES-192-key.pub │ │ │ │ ├── super-secret-passphrase-RSA-DES-EDE3-key.pub │ │ │ │ ├── EDDSAProviderTest-EDDSA-OpenSSH-KeyPair │ │ │ │ ├── SecurityUtilsTest-DSA-KeyPair.pub │ │ │ │ └── SecurityUtilsTest-DSA-KeyPair │ │ ├── signature │ │ │ ├── id_ecdsa │ │ │ └── id_dsa │ │ └── channel │ │ │ ├── stty-output-1.txt │ │ │ └── stty-output-2.txt │ │ └── client │ │ └── config │ │ ├── hosts │ │ ├── readMultipleHostPatterns.config.txt │ │ ├── readSimpleHostsConfigEntries.config.txt │ │ └── readGlobalHostsConfigEntries.config.txt │ │ └── keys │ │ ├── id_ecdsa │ │ └── id_dsa │ └── main │ ├── filtered-resources │ ├── META-INF │ │ └── services │ │ │ └── java.nio.file.spi.FileSystemProvider │ └── org │ │ └── apache │ │ └── sshd │ │ └── sshd-version.properties │ └── java │ └── org │ └── apache │ └── sshd │ ├── common │ ├── mac │ │ ├── package-info.java │ │ └── MacFactory.java │ ├── cipher │ │ ├── package-info.java │ │ └── CipherFactory.java │ ├── digest │ │ └── package-info.java │ ├── random │ │ ├── package-info.java │ │ ├── RandomFactory.java │ │ └── AbstractRandom.java │ ├── signature │ │ └── package-info.java │ ├── compression │ │ ├── package-info.java │ │ └── CompressionFactory.java │ ├── AlgorithmNameProvider.java │ ├── auth │ │ ├── PasswordHolder.java │ │ ├── MutablePassword.java │ │ ├── MutableUserHolder.java │ │ ├── BasicCredentialsProvider.java │ │ ├── MutableBasicCredentials.java │ │ └── UsernameHolder.java │ ├── session │ │ └── SessionContextHolder.java │ ├── keyprovider │ │ └── KeySizeIndicator.java │ ├── io │ │ ├── IoHandlerFactory.java │ │ └── IoServiceEventListenerManager.java │ ├── config │ │ └── keys │ │ │ └── FilePasswordProviderManager.java │ └── util │ │ ├── buffer │ │ └── BufferException.java │ │ └── threads │ │ └── ExecutorServiceCarrier.java │ └── client │ └── config │ └── keys │ └── ClientIdentityLoaderManager.java ├── sshd-git ├── README.txt └── src │ └── main │ └── java │ └── org │ └── apache │ └── sshd │ └── git │ └── GitLocationResolverCarrier.java ├── NOTICE.txt ├── sshd-owasp-suppressions.xml ├── SECURITY.md ├── NOTICE-bin.txt ├── .asf.yaml ├── .gitignore ├── assembly └── src │ └── main │ └── legal │ └── licenses │ ├── jpam.txt │ ├── jbcrypt.txt │ ├── jpgpj.txt │ ├── bouncycastle.txt │ └── slf4j.txt ├── sshd-checkstyle-suppressions.xml ├── java-checkstyle-license-header.txt ├── security.txt ├── .github └── ISSUE_TEMPLATE │ └── feature_request.yml ├── sshd-findbugs.xml └── .gitattributes /sshd-cli/src/main/resources/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sshd-contrib/src/main/resources/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sshd-openpgp/src/main/resources/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sshd-putty/src/main/resources/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sshd-putty/src/test/resources/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sshd-ldap/src/main/resources/.gitignore: -------------------------------------------------------------------------------- 1 | # Placeholder -------------------------------------------------------------------------------- /sshd-core/.gitignore: -------------------------------------------------------------------------------- 1 | key.pem 2 | key.ser 3 | hostkey.ser -------------------------------------------------------------------------------- /sshd-mina/.gitignore: -------------------------------------------------------------------------------- 1 | key.pem 2 | key.ser 3 | hostkey.ser -------------------------------------------------------------------------------- /sshd-netty/.gitignore: -------------------------------------------------------------------------------- 1 | key.pem 2 | key.ser 3 | hostkey.ser -------------------------------------------------------------------------------- /sshd-cli/src/test/resources/.gitignore: -------------------------------------------------------------------------------- 1 | # Placeholder for empty folder -------------------------------------------------------------------------------- /sshd-scp/src/main/resources/.gitignore: -------------------------------------------------------------------------------- 1 | # Placeholder for empty folder -------------------------------------------------------------------------------- /sshd-mina/src/test/resources/.gitignore: -------------------------------------------------------------------------------- 1 | # Placeholder for empty folder -------------------------------------------------------------------------------- /sshd-netty/src/test/resources/.gitignore: -------------------------------------------------------------------------------- 1 | # Placeholder for empty folder -------------------------------------------------------------------------------- /sshd-sftp/src/test/resources/.gitignore: -------------------------------------------------------------------------------- 1 | # Placeholder for empty folder 2 | -------------------------------------------------------------------------------- /sshd-spring-sftp/src/main/resources/.gitignore: -------------------------------------------------------------------------------- 1 | # Placeholder for empty folder -------------------------------------------------------------------------------- /sshd-spring-sftp/src/test/resources/.gitignore: -------------------------------------------------------------------------------- 1 | # Placeholder for empty folder -------------------------------------------------------------------------------- /sshd-sources/tomcat-apr-5.5.23-sources/README.txt: -------------------------------------------------------------------------------- 1 | See https://github.com/apache/tomcat-native project from which the JAR was created 2 | -------------------------------------------------------------------------------- /sshd-openpgp/src/test/resources/kbx2ring/pubring.kbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/mina-sshd/HEAD/sshd-openpgp/src/test/resources/kbx2ring/pubring.kbx -------------------------------------------------------------------------------- /sshd-openpgp/src/test/resources/kbx2ring/trustdb.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/mina-sshd/HEAD/sshd-openpgp/src/test/resources/kbx2ring/trustdb.gpg -------------------------------------------------------------------------------- /sshd-openpgp/src/test/resources/keyring/pubring.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/mina-sshd/HEAD/sshd-openpgp/src/test/resources/keyring/pubring.gpg -------------------------------------------------------------------------------- /sshd-openpgp/src/test/resources/keyring/random_seed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/mina-sshd/HEAD/sshd-openpgp/src/test/resources/keyring/random_seed -------------------------------------------------------------------------------- /sshd-openpgp/src/test/resources/keyring/secring.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/mina-sshd/HEAD/sshd-openpgp/src/test/resources/keyring/secring.gpg -------------------------------------------------------------------------------- /sshd-openpgp/src/test/resources/keyring/trustdb.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/mina-sshd/HEAD/sshd-openpgp/src/test/resources/keyring/trustdb.gpg -------------------------------------------------------------------------------- /sshd-sftp/src/test/resources/org/apache/sshd/sftp/client/ed25519_key.pub: -------------------------------------------------------------------------------- 1 | ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFvAwbkAfQjdHvzuW/tcpgmQDmnk+hFIILdg2UeF4j6L 2 | -------------------------------------------------------------------------------- /sshd-benchmarks/src/main/resources/org/apache/sshd/benchmarks/ed25519_key.pub: -------------------------------------------------------------------------------- 1 | ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFvAwbkAfQjdHvzuW/tcpgmQDmnk+hFIILdg2UeF4j6L 2 | -------------------------------------------------------------------------------- /.mvn/maven.config: -------------------------------------------------------------------------------- 1 | -Dworkspace.root.dir=${session.rootDirectory} 2 | -DprojectRoot=${session.rootDirectory} 3 | -Dorg.slf4j.simpleLogger.log.net.sourceforge.pmd=off 4 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/ca/ca_ed25519.pub: -------------------------------------------------------------------------------- 1 | ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFUwmS8JLsTQwJZGF8g2r63wA+jhuFagJ61fD56AObns CA 2 | -------------------------------------------------------------------------------- /docs/changes/2.13.1.md: -------------------------------------------------------------------------------- 1 | # Introduced in 2.13.1 2 | 3 | No code changes; only a re-deployment. The deployment of 2.13.0 to Maven Central had omitted the source bundles. 4 | 5 | -------------------------------------------------------------------------------- /sshd-sources/tomcat-apr-5.5.23-sources/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Ant-Version: Apache Ant 1.6.5 3 | Created-By: 1.4.2_12-b03 (Sun Microsystems Inc.) 4 | 5 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/auth/pubkey/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | chown -R bob /home/bob 4 | chmod 0600 /home/bob/.ssh/* 5 | /usr/sbin/sshd -D -ddd 6 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user01_ed25519.pub: -------------------------------------------------------------------------------- 1 | ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILt1C+AJph1Abgcsjoy2GXd7cRFSF+gIJt3QVCGv34+S user01 2 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user02_ed25519.pub: -------------------------------------------------------------------------------- 1 | ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM1WtN3FW00ObF5kmTR4bLU8ixVwAYUX390rxfAQtHos user02 2 | -------------------------------------------------------------------------------- /sshd-scp/src/test/resources/org/apache/sshd/scp/client/entrypoint.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/mina-sshd/HEAD/sshd-scp/src/test/resources/org/apache/sshd/scp/client/entrypoint.sh -------------------------------------------------------------------------------- /sshd-sources/tomcat-apr-5.5.23-sources/META-INF/INDEX.LIST: -------------------------------------------------------------------------------- 1 | JarIndex-Version: 1.0 2 | 3 | tomcat-apr.jar 4 | org 5 | org/apache 6 | org/apache/tomcat 7 | org/apache/tomcat/jni 8 | 9 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/openssh/ED25519-KeyPair.pub: -------------------------------------------------------------------------------- 1 | ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHROxqPSxyzx9goyWfPYydyTLnjk2ggI/14YwYimjkbd root@ubuntu-15 -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/ssh2/ssh-ed25519-PublicKey.pub: -------------------------------------------------------------------------------- 1 | ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHROxqPSxyzx9goyWfPYydyTLnjk2ggI/14YwYimjkbd root@ubuntu-15 -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/common/kex/extensions/client/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | chown -R bob /home/bob 4 | chmod 0600 /home/bob/.ssh/* 5 | 6 | /usr/sbin/sshd -D -ddd 7 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/certificateoptions/user_ed25519.pub: -------------------------------------------------------------------------------- 1 | ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJT1bHLlCvJir7LPT/AZ7YlGK+w1I4uVWladjJT4LAw1 user_ed25519 2 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/util/security/EDDSAProviderTest-EDDSA-OpenSSH-KeyPair.pub: -------------------------------------------------------------------------------- 1 | ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHROxqPSxyzx9goyWfPYydyTLnjk2ggI/14YwYimjkbd root@ubuntu-15 -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | wrapperVersion=3.3.4 2 | distributionType=only-script 3 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.8/apache-maven-3.9.8-bin.zip 4 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/openssh/encrypted-ED25519-KeyPair.pub: -------------------------------------------------------------------------------- 1 | ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICGIC5vIdd8i18nx3SnWgZRn5+8Bb9xEmWIPmY9BdO5y lyor@localhost.localdomain 2 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-eddsa.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MC4CAQAwBQYDK2VwBCIEIB5k1Srs4YLjjoqR05Nu9CeBMVA2CDGK37sqjIoTehL1 3 | -----END PRIVATE KEY----- 4 | -------------------------------------------------------------------------------- /sshd-git/README.txt: -------------------------------------------------------------------------------- 1 | This module contains an SSHD CommandFactory to support git through SSH. 2 | The git commands are provided by a modified version of jgit-pgm 3 | available at: 4 | https://github.com/gnodet/jgit/tree/413522 5 | -------------------------------------------------------------------------------- /docs/changes/2.5.1.md: -------------------------------------------------------------------------------- 1 | # Introduced in version 2.5.1 2 | 3 | ## Behavioral changes and enhancements 4 | 5 | * [SSHD-1022](https://issues.apache.org/jira/browse/SSHD-1022) NPE in `SftpOutputStreamAsync#flush()` if no data written in between. 6 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/ca/ca_ecdsa_256.pub: -------------------------------------------------------------------------------- 1 | ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBC1BlTQDpGrgXHO36JUG+B+jPmTmNktaf0xmMEA77pFGGVxNnbAgoEx/NGU0H2ZaBHBDyKHtmG6jAmPQdk9iJvE= CA 2 | -------------------------------------------------------------------------------- /sshd-openpgp/src/test/resources/kbx2ring/private-keys-v1.d/30F6173E98A6D0AF0C72CF8C0F1C452CAE49CA29.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/mina-sshd/HEAD/sshd-openpgp/src/test/resources/kbx2ring/private-keys-v1.d/30F6173E98A6D0AF0C72CF8C0F1C452CAE49CA29.key -------------------------------------------------------------------------------- /sshd-openpgp/src/test/resources/kbx2ring/private-keys-v1.d/D1DEB8CA8D7DB9DCA3A2F6D02891F4B771628949.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/mina-sshd/HEAD/sshd-openpgp/src/test/resources/kbx2ring/private-keys-v1.d/D1DEB8CA8D7DB9DCA3A2F6D02891F4B771628949.key -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user01_ecdsa_256.pub: -------------------------------------------------------------------------------- 1 | ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBIWCTvw8vfCktO7ufo3g/g3RdXPLfuTrVNRFktA/g4uA0NuBplFSS+0LLJvCDXn69QCRIi+IBr5J1U2z3iVIkw8= user01 2 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user02_ecdsa_256.pub: -------------------------------------------------------------------------------- 1 | ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNfOtr4Mbt8z31xIu2b6oWF+0EaH1v1Fn741fyBu1eUZFuhdJuUugKKb3sDOZ/SLOLdfDRKEBnVNwxHJluerN9M= user02 2 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/client/config/hosts/readMultipleHostPatterns.config.txt: -------------------------------------------------------------------------------- 1 | # Same configuration duplicated in multiple configuration entries 2 | Host *.github.com *.apache.org 10.*.*.* 3 | User mina-sshd 4 | Port 443 5 | HostName 7.3.6.5 6 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/util/security/SecurityUtilsTest-EC-256-KeyPair.pub: -------------------------------------------------------------------------------- 1 | ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKGx7cPcJC999nqfX4vBsOYPLBBsLJTaJz1Ag0emFGfZoznoZYi6RQyxy8ZSBWn61TPiyKWoI6USmXJ6Rj1kA5w= root@osv-linux -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/ssh2/ecdsa-sha2-nistp256-PublicKey.pub: -------------------------------------------------------------------------------- 1 | ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKGx7cPcJC999nqfX4vBsOYPLBBsLJTaJz1Ag0emFGfZoznoZYi6RQyxy8ZSBWn61TPiyKWoI6USmXJ6Rj1kA5w= root@osv-linux -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/certificateoptions/user_ecdsa_256.pub: -------------------------------------------------------------------------------- 1 | ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBF1bvSkBxuXowjPJ2PqFJetIAU4RbIFwoM40xN/IH+rwjWLsWyOsgc6/FeRSPomgMSLTm35onljuxD+Fp/NoHXg= user_ecdsa_256 2 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/common/auth/super-secret-passphrase-ec256-key.pub: -------------------------------------------------------------------------------- 1 | ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBL01p9qPAsYum1h7HXFpbvwIWyb7CbzbQK5qlo97xbPgYxguslezrgZZZgITFVlzECSiXIpReOFQ0bZW78fo3D0= lgoldstein@LYORPC-A8133U7 2 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/client/config/hosts/readSimpleHostsConfigEntries.config.txt: -------------------------------------------------------------------------------- 1 | # Simple configuration file 2 | Host *.github.com 3 | User mina-sshd 4 | Port 443 5 | IdentityFile ~/.ssh/github.key 6 | 7 | Host *.apache.org 8 | User mina-sshd 9 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/ca/ca_ecdsa_384.pub: -------------------------------------------------------------------------------- 1 | ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBCdjfUFi0nzXypbpFHHcPJtmc27zuc0koPMMuqwxHT6syRLifoZbwpKWaFNoysK987s9Z6QAprZRtyMUZa2M8i3hJNU3KrSjdqb3T6Reab/qtXiGnSyTxQuX1W2EBaq1NQ== CA 2 | -------------------------------------------------------------------------------- /docs/changes/2.13.2.md: -------------------------------------------------------------------------------- 1 | # Introduced in 2.13.2 2 | 3 | ## Bug Fixes 4 | 5 | * [GH-525](https://github.com/apache/mina-sshd/issues/525) Fix sntrup761x25519-sha512 key exchange 6 | 7 | ## New Features 8 | 9 | ## Potential compatibility issues 10 | 11 | ## Major Code Re-factoring 12 | 13 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user01_ecdsa_384.pub: -------------------------------------------------------------------------------- 1 | ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBMP2qGWye28wbLpEbdCQtc4VQbFBvlOFHKblV+lpZfYyRx/YLJJspNK+W61uR+dhap5betjl8Eyx29xtrYcetJL0F4PhZCSNE/x/EBASZ3IKdvWMhkcy+ZbjBfu+lY5ntg== user01 2 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user02_ecdsa_384.pub: -------------------------------------------------------------------------------- 1 | ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBPReUckvy17wCHDV2rEvegAZ3l45zRovHsUg6hY9HfiTgcf6YDKrk4tz8r7ipbYJvpk6MnFqSIRp6sO0JVoKcg4+SAjQ+eJVr0lLtP+9uTLee7Pds/L47LeofyL6Yjqljw== user02 2 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/openssh/encrypted-ECDSA-KeyPair.pub: -------------------------------------------------------------------------------- 1 | ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBBiyCyD9jl71xak4XLDm9aK7Hms5Gg7TEXE79Ql6dk9WI0RLe/mcsJUAXoH/iYvK0N1byXZj8S6hTA1EKU7iqkfkglBVOJAKFHs912Q0tGaajZ+Jz9mzfz7vkHtxrm5xlQ== -------------------------------------------------------------------------------- /sshd-benchmarks/src/main/resources/org/apache/sshd/benchmarks/disable_force_command.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Remove the ForceCommand and the chroot jail to enable the cat upload benchmark 4 | sed -i 's/ForceCommand internal-sftp//g' /etc/ssh/sshd_config 5 | sed -i 's/ChrootDirectory %h//g' /etc/ssh/sshd_config 6 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/client/config/keys/id_ecdsa: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MHcCAQEEIPKmiQzAASg656IP4PuuElLdLdO/MIXrGxQG6tGkKZ1HoAoGCCqGSM49 3 | AwEHoUQDQgAEobHtw9wkL332ep9fi8Gw5g8sEGwslNonPUCDR6YUZ9mjOehliLpF 4 | DLHLxlIFafrVM+LIpagjpRKZcnpGPWQDnA== 5 | -----END EC PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/ssh2/ssh-ed25519-PublicKey.ssh2: -------------------------------------------------------------------------------- 1 | ---- BEGIN SSH2 PUBLIC KEY ---- 2 | Comment: "256-bit ED25519, converted by lyor@localhost.localdomain fro" 3 | AAAAC3NzaC1lZDI1NTE5AAAAIHROxqPSxyzx9goyWfPYydyTLnjk2ggI/14YwYimjkbd 4 | ---- END SSH2 PUBLIC KEY ---- 5 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/signature/id_ecdsa: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MHcCAQEEIPKmiQzAASg656IP4PuuElLdLdO/MIXrGxQG6tGkKZ1HoAoGCCqGSM49 3 | AwEHoUQDQgAEobHtw9wkL332ep9fi8Gw5g8sEGwslNonPUCDR6YUZ9mjOehliLpF 4 | DLHLxlIFafrVM+LIpagjpRKZcnpGPWQDnA== 5 | -----END EC PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/util/security/SecurityUtilsTest-EC-384-KeyPair.pub: -------------------------------------------------------------------------------- 1 | ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBFImZtcTj842stlcVHLFBFxTEx7lu3jW9aZCvd0r9fUNKZ6LbRPh6l1oJ4ozArnw7XreQBUc5oNd9HB5RNJ8jl1nWXY5cXBA7McZrKZrYmk+zxNhH6UL+kMLaJkyngJHQw== root@osv-linux -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/ca/ca_ecdsa_256: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MHcCAQEEIEwqN8oVF6aBi3zuKgCrc14hD46A9KwBOICOXUKTva1QoAoGCCqGSM49 3 | AwEHoUQDQgAELUGVNAOkauBcc7folQb4H6M+ZOY2S1p/TGYwQDvukUYZXE2dsCCg 4 | TH80ZTQfZloEcEPIoe2YbqMCY9B2T2Im8Q== 5 | -----END EC PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /NOTICE.txt: -------------------------------------------------------------------------------- 1 | Apache MINA SSHD 2 | Copyright 2008-2021 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | 7 | Please refer to each LICENSE..txt file for the 8 | license terms of the components that Apache MINA depends on. 9 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/ssh2/ecdsa-sha2-nistp384-PublicKey.pub: -------------------------------------------------------------------------------- 1 | ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBFImZtcTj842stlcVHLFBFxTEx7lu3jW9aZCvd0r9fUNKZ6LbRPh6l1oJ4ozArnw7XreQBUc5oNd9HB5RNJ8jl1nWXY5cXBA7McZrKZrYmk+zxNhH6UL+kMLaJkyngJHQw== root@osv-linux -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/certificateoptions/user_ecdsa_384.pub: -------------------------------------------------------------------------------- 1 | ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBGAEsP8/wyRdimw9HqWSghrg+Fif+Tj9PBQxsG+d1/Cai9z0xDDUbwyPuVOgYAHwUkeD2+CBOrvHkIleHA6CwmnGrlL9ZrkbqfCdIp136ILYOnQQneVY6/FrzzDZerRmUg== user_ecdsa_384 2 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user01_ecdsa_256: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MHcCAQEEIEyKV4q7RQS/9hQelVYrPGNVb8FL1dwNg1wTCUaXqDnjoAoGCCqGSM49 3 | AwEHoUQDQgAEhYJO/Dy98KS07u5+jeD+DdF1c8t+5OtU1EWS0D+Di4DQ24GmUVJL 4 | 7Qssm8INefr1AJEiL4gGvknVTbPeJUiTDw== 5 | -----END EC PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user02_ecdsa_256: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MHcCAQEEIO6HONE7IBEVncE8BxMEovDRbCzie1QQg3tu/MFX/KbPoAoGCCqGSM49 3 | AwEHoUQDQgAE1862vgxu3zPfXEi7ZvqhYX7QRofW/UWfvjV/IG7V5RkW6F0m5S6A 4 | opvewM5n9Is4t18NEoQGdU3DEcmW56s30w== 5 | -----END EC PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/server/config/keys/ssh_host_ecdsa_key: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MHcCAQEEIPKmiQzAASg656IP4PuuElLdLdO/MIXrGxQG6tGkKZ1HoAoGCCqGSM49 3 | AwEHoUQDQgAEobHtw9wkL332ep9fi8Gw5g8sEGwslNonPUCDR6YUZ9mjOehliLpF 4 | DLHLxlIFafrVM+LIpagjpRKZcnpGPWQDnA== 5 | -----END EC PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-eddsa.enc: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | Proc-Type: 4,ENCRYPTED 3 | DEK-Info: AES-128-CBC,b619a06a16b7b7a6436579f06a14f45e 4 | 5 | QmysBFzoMkgvVTM39kvHjkKhcBjK6PVMZ6a/taF44ZXeOl3t5DUp4EWxyfs8htng 6 | tjsKIb0yKJigIZGrCeHROQ== 7 | -----END PRIVATE KEY----- -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/util/security/SecurityUtilsTest-EC-256-KeyPair: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MHcCAQEEIPKmiQzAASg656IP4PuuElLdLdO/MIXrGxQG6tGkKZ1HoAoGCCqGSM49 3 | AwEHoUQDQgAEobHtw9wkL332ep9fi8Gw5g8sEGwslNonPUCDR6YUZ9mjOehliLpF 4 | DLHLxlIFafrVM+LIpagjpRKZcnpGPWQDnA== 5 | -----END EC PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/ca/ca_ecdsa_521.pub: -------------------------------------------------------------------------------- 1 | ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAGx2Z4IejCgPfBfQBXCUeQsrGtKdou6t3Ns1W6An6GNxmue23kQtnvCfILxTDhmT8Z+0h26/+hWjT8pvz3omwIacgHbI+BLIx+1T3XIhDxKuCXvEkuOCyDqgkgOO1zurUn6THsUi6OvYCTy4d0Krr5oZIIaudPvzHW2ppctMrKJElnjQw== CA 2 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-ec-256.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgs6QE06EskVFA/o7i 3 | HrNnF9In14QcJC9EgkXsVFk+SWWhRANCAAT8lGjPLQVdmwglhBP9refqp9Mrr7AN 4 | pGSOy3cCDtG4JeRr25s+EXavossaZ9U8MWe39wWUV7yvz5BT5hA3HSig 5 | -----END PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user01_ecdsa_521.pub: -------------------------------------------------------------------------------- 1 | ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAH/ht5TpfOQ2BBdqKutIPBDSlgln25gaMdjUisLDa6FDSMi8bGbV5GhXyMtCESDwYfCHC+XPsRfjqisR+v7QO2aBAER49BKQiEBcIZRn5M7722svPtn+fI4jFXjK5AR10ECi4PWKd4IcoZYMCPpDwNMU0HI01hTluQlkX/wq4h6sHgY/Q== user01 2 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user02_ecdsa_521.pub: -------------------------------------------------------------------------------- 1 | ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAGnrzzTHBNvuomdPlQhf004Vwg0l9dMI5yoKLAWPLEzo8DhJEvHzVlTKy5Q7XUu3Fv0kpG1nJFS9K0fuPMI0cIS3QF1ZhWX0s2zDAKhlUtSRlkPgyP6HGDXQDlFsRPX5ihbEA5Vjvigcaul/6g2jCiaquVlkLbyAqdNh9wNFZMu+z0AmA== user02 2 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/openssh/ECDSA-KeyPair.pub: -------------------------------------------------------------------------------- 1 | ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAAZE+/l4KZ3eMVMJauKhZUeBCEef92KvyeuKISidkM8/6ESNfUCJjJqF+8VaioojiUpHOgSYXlaTpy370szQkUZwQByTtncn81e0Kcd4S+e6wcygA2OEosTEFRFE445MbOLIcy4YEwEiBEWd/isGGJPN257EmdoyCXKrEisOkaE7HCFAA== root@ubuntu-15 2 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/util/security/SecurityUtilsTest-EC-521-KeyPair.pub: -------------------------------------------------------------------------------- 1 | ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBACg4siCq1iqr4U/spXmw6b2VwBMsof7XLQGoD9wfwUikb8XWthNSmPP1nL6rlzJ5j8Bezn9BSSDfVAJfgqxmGIHdgHRVc0mkdq1/Q/DKhBgRyjZc29eo0o2ck3SNGNVaAabRYj6ck/iub/U6trKM7bdqy/joYYMwZdxLyYW5YxkPbqEfQ== root@osv-linux -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/ssh2/ecdsa-sha2-nistp521-PublicKey.pub: -------------------------------------------------------------------------------- 1 | ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBACg4siCq1iqr4U/spXmw6b2VwBMsof7XLQGoD9wfwUikb8XWthNSmPP1nL6rlzJ5j8Bezn9BSSDfVAJfgqxmGIHdgHRVc0mkdq1/Q/DKhBgRyjZc29eo0o2ck3SNGNVaAabRYj6ck/iub/U6trKM7bdqy/joYYMwZdxLyYW5YxkPbqEfQ== root@osv-linux -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/certificateoptions/user_ecdsa_521.pub: -------------------------------------------------------------------------------- 1 | ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBADefNMIKsT13eW08c9sE2b7VX7rB6ok0/GnwwwKcibC87MazHsL/juSG5rAWusBXuuXQWxXrE6MwWJgr4sWJw+nWQCj8TSkxo0iEN8QUoicOjq2+CoZIDeuf/C2xlLiVwMxnHVSl3X0dZCUAtmG0mLaqaJp2cGNz/QXC6cfPISnc1sRRQ== user_ecdsa_521 2 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/ca/ca_ecdsa_384: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MIGkAgEBBDDSpV89AtUVHNZLzc/YqgZz5EP4iag/TzWAyVEnWEHyaGXJOFZj0zhy 3 | SG9S5zGxixagBwYFK4EEACKhZANiAAQnY31BYtJ818qW6RRx3DybZnNu87nNJKDz 4 | DLqsMR0+rMkS4n6GW8KSlmhTaMrCvfO7PWekAKa2UbcjFGWtjPIt4STVNyq0o3am 5 | 90+kXmm/6rV4hp0sk8ULl9VthAWqtTU= 6 | -----END EC PRIVATE KEY----- 7 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user01_ecdsa_384: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MIGkAgEBBDB2lxuAR9yB306ZFCp5DrP7wozhJ1WyEt5PC9syjsfvWyND8Lsd4bqn 3 | OC8rneodpBygBwYFK4EEACKhZANiAATD9qhlsntvMGy6RG3QkLXOFUGxQb5ThRym 4 | 5VfpaWX2Mkcf2CySbKTSvlutbkfnYWqeW3rY5fBMsdvcba2HHrSS9BeD4WQkjRP8 5 | fxAQEmdyCnb1jIZHMvmW4wX7vpWOZ7Y= 6 | -----END EC PRIVATE KEY----- 7 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user02_ecdsa_384: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MIGkAgEBBDDLEwsMtXEE646CVR8y2RFbtd6UhI9xtmxJznt4gqaAND3h958lQauN 3 | zNuZmo4E6BugBwYFK4EEACKhZANiAAT0XlHJL8te8Ahw1dqxL3oAGd5eOc0aLx7F 4 | IOoWPR34k4HH+mAyq5OLc/K+4qW2Cb6ZOjJxakiEaerDtCVaCnIOPkgI0PniVa9J 5 | S7T/vbky3nuz3bPy+Oy3qH8i+mI6pY8= 6 | -----END EC PRIVATE KEY----- 7 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/docker/supervisord.conf: -------------------------------------------------------------------------------- 1 | [supervisord] 2 | ; nodaemon=true (no daemon) means run in foreground 3 | nodaemon=true 4 | user=root 5 | 6 | [program:sshd] 7 | directory=/etc/ssh 8 | command=/usr/sbin/sshd -D -e 9 | stdout_logfile=/dev/stdout 10 | stdout_logfile_maxbytes=0 11 | stderr_logfile=/dev/stderr 12 | stderr_logfile_maxbytes=0 -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-eddsa.enc2: -------------------------------------------------------------------------------- 1 | -----BEGIN ENCRYPTED PRIVATE KEY----- 2 | MIGbMFcGCSqGSIb3DQEFDTBKMCkGCSqGSIb3DQEFDDAcBAissSdojfMQ4QICCAAw 3 | DAYIKoZIhvcNAgkFADAdBglghkgBZQMEASoEEE4MMajn5fEYAAiTAnuMWToEQAGx 4 | cfujwh+369p8xhzkAYl49PFZNKltx5KS53Lzi7yVDNOIK43FWejEFW98zCZX5WYJ 5 | cq0lGdV2B7XLR+pebp0= 6 | -----END ENCRYPTED PRIVATE KEY----- 7 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/ssh2/ecdsa-sha2-nistp256-PublicKey.ssh2: -------------------------------------------------------------------------------- 1 | ---- BEGIN SSH2 PUBLIC KEY ---- 2 | Comment: "256-bit ECDSA, converted by lyor@localhost.localdomain from " 3 | AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKGx7cPcJC999nqfX4 4 | vBsOYPLBBsLJTaJz1Ag0emFGfZoznoZYi6RQyxy8ZSBWn61TPiyKWoI6USmXJ6Rj1kA5w= 5 | 6 | ---- END SSH2 PUBLIC KEY ---- 7 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/util/security/SecurityUtilsTest-EC-384-KeyPair: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MIGkAgEBBDB15z4n/vjug4fcEXPcgeonCHQuxJOwgFDIap/rgtM3EwuFDpE9wkfM 3 | K64UwV1ZSlygBwYFK4EEACKhZANiAARSJmbXE4/ONrLZXFRyxQRcUxMe5bt41vWm 4 | Qr3dK/X1DSmei20T4epdaCeKMwK58O163kAVHOaDXfRweUTSfI5dZ1l2OXFwQOzH 5 | Gayma2JpPs8TYR+lC/pDC2iZMp4CR0M= 6 | -----END EC PRIVATE KEY----- 7 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-ec-384.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDAKagn5+JY4/pjeHLUX 3 | IORdDtAd8l//84hnzxiWR80AHLnyI8N4YUp7zPGUY0n5/VehZANiAAQacLGO21zt 4 | XkO/jijS+1BMxfuZyvtDE0fyENi6FNsYz92s+szssUxLl1XPO1Bv7+xdX/nkqjbi 5 | V26a3G8VzoNUl8KNrYUfH+fcukhVKCU3A9VP8u1HZBhOIn+ouKUSj5E= 6 | -----END PRIVATE KEY----- 7 | -------------------------------------------------------------------------------- /sshd-putty/src/test/resources/org/apache/sshd/putty/PuttyKeyUtilsTest-ssh-ed25519-KeyPair.ppk: -------------------------------------------------------------------------------- 1 | PuTTY-User-Key-File-2: ssh-ed25519 2 | Encryption: none 3 | Comment: ed25519-key-20170917 4 | Public-Lines: 2 5 | AAAAC3NzaC1lZDI1NTE5AAAAIN7fuKSIM5TbAX/1I1Ts3tfyo5eEs7JpmKsegHs/ 6 | 9fIi 7 | Private-Lines: 1 8 | AAAAIADKJJPxsUp7JXLzm1zwk8UswW/lkiwPJ73CbqGvalgP 9 | Private-MAC: 28a22234152feaf1d9a6a10ca0ae3a51b5e6dd52 10 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-ec-256.enc: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | Proc-Type: 4,ENCRYPTED 3 | DEK-Info: AES-128-CBC,82A0E2DE9DF801A2E466CB530BDFDE24 4 | 5 | 4S+0YT4zV+aM29qcHJxT5NOiYc+4fG8iAzX4W4vNGNoYerLPaaodhE0qIqN3VdkY 6 | ROf5cCMpgXx1VSbvspXA5Lu+h7xFXHch6z8REpXsuJL4iNVfjzinZFX5+vf8SHm/ 7 | X1uYZFM2/ztly5BSMfzuF7HPfwa50+QnNzvHVx3Vie0= 8 | -----END EC PRIVATE KEY----- 9 | -------------------------------------------------------------------------------- /sshd-sources/tomcat-apr-5.5.23-sources/org/apache/tomcat/jni/Thread.java: -------------------------------------------------------------------------------- 1 | package org.apache.tomcat.jni; 2 | 3 | public class Thread 4 | { 5 | public static native long current(); 6 | } 7 | 8 | 9 | /* Location: C:\Users\lgoldstein\.m2\repository\tomcat\tomcat-apr\5.5.23\tomcat-apr-5.5.23.jar!\org\apache\tomcat\jni\Thread.class 10 | * Java compiler version: 2 (46.0) 11 | * JD-Core Version: 0.7.1 12 | */ -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-dsa-512.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MIHIAgEAMIGpBgcqhkjOOAQBMIGdAkEAnrhScRCby27Ljb3vWS3G1QvNUHSdIPdI 3 | 3+RP2zwttFDFd/aiaUEcLLbh8IisPDVc9DDbJ0z/y13DjCYngYp7lQIVALIwvrMu 4 | tUgCZrUBc9i7QeG6HqKPAkEAgvvqu633ZwMhnOyFg9cirgIC4d3gulmxHo2lbbXg 5 | mD9SGilbvy2pVD5HP7UzAfF/6Ilww3iSc7twxNaaNKaObwQXAhUAoI0C5dA0HAJK 6 | SHYDk8fXklh0YwI= 7 | -----END PRIVATE KEY----- 8 | -------------------------------------------------------------------------------- /sshd-owasp-suppressions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | 9 | ^tomcat:tomcat-apr:.*$ 10 | cpe:/a:apache:tomcat 11 | 12 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/ssh2/ecdsa-sha2-nistp384-PublicKey.ssh2: -------------------------------------------------------------------------------- 1 | ---- BEGIN SSH2 PUBLIC KEY ---- 2 | Comment: "384-bit ECDSA, converted by lyor@localhost.localdomain from " 3 | AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBFImZtcTj842stlcVH 4 | LFBFxTEx7lu3jW9aZCvd0r9fUNKZ6LbRPh6l1oJ4ozArnw7XreQBUc5oNd9HB5RNJ8jl1n 5 | WXY5cXBA7McZrKZrYmk+zxNhH6UL+kMLaJkyngJHQw== 6 | ---- END SSH2 PUBLIC KEY ---- 7 | -------------------------------------------------------------------------------- /sshd-scp/src/test/resources/org/apache/sshd/scp/client/bob_key.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFjcevVKqkkhD1JsV8YwbB5XLyODZMQfcYLUrQu51AcnCiBGL515t0KpS25IhNuk+GOR5lKT2urX3x3pGFPpNCZj0nzAsvb/5VdmT+sxUQSN5dBLciZGcva9WaQC6e/ovB8MYcii+SHCPf+WoZamEMAqcfJe6w8PBDc3gsUaDHBe9EapyXOY/wf4oNZpo9qmTUBkIEigPglsvx9oG0s1TTWv6kHewgq9+w8nkPE8StOF+s+4OohsDdrESoWWBfhpWXfIydJaN+EuE7vEPdjCu1SFqece3yllCjkWTAIZYOmQbfGz6ordkAKuEwUxO8+4NLzeMO0TM13kphvgqeQ48x user01 2 | -------------------------------------------------------------------------------- /sshd-sftp/src/test/resources/org/apache/sshd/sftp/client/rsa_key.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFjcevVKqkkhD1JsV8YwbB5XLyODZMQfcYLUrQu51AcnCiBGL515t0KpS25IhNuk+GOR5lKT2urX3x3pGFPpNCZj0nzAsvb/5VdmT+sxUQSN5dBLciZGcva9WaQC6e/ovB8MYcii+SHCPf+WoZamEMAqcfJe6w8PBDc3gsUaDHBe9EapyXOY/wf4oNZpo9qmTUBkIEigPglsvx9oG0s1TTWv6kHewgq9+w8nkPE8StOF+s+4OohsDdrESoWWBfhpWXfIydJaN+EuE7vEPdjCu1SFqece3yllCjkWTAIZYOmQbfGz6ordkAKuEwUxO8+4NLzeMO0TM13kphvgqeQ48x user01 2 | -------------------------------------------------------------------------------- /sshd-benchmarks/src/main/resources/org/apache/sshd/benchmarks/rsa_key.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFjcevVKqkkhD1JsV8YwbB5XLyODZMQfcYLUrQu51AcnCiBGL515t0KpS25IhNuk+GOR5lKT2urX3x3pGFPpNCZj0nzAsvb/5VdmT+sxUQSN5dBLciZGcva9WaQC6e/ovB8MYcii+SHCPf+WoZamEMAqcfJe6w8PBDc3gsUaDHBe9EapyXOY/wf4oNZpo9qmTUBkIEigPglsvx9oG0s1TTWv6kHewgq9+w8nkPE8StOF+s+4OohsDdrESoWWBfhpWXfIydJaN+EuE7vEPdjCu1SFqece3yllCjkWTAIZYOmQbfGz6ordkAKuEwUxO8+4NLzeMO0TM13kphvgqeQ48x user01 2 | -------------------------------------------------------------------------------- /sshd-putty/src/test/resources/org/apache/sshd/putty/super-secret-passphrase-AES-256-CBC-ssh-ed25519-KeyPair.ppk: -------------------------------------------------------------------------------- 1 | PuTTY-User-Key-File-2: ssh-ed25519 2 | Encryption: aes256-cbc 3 | Comment: ed25519-key-20170917 4 | Public-Lines: 2 5 | AAAAC3NzaC1lZDI1NTE5AAAAIN7fuKSIM5TbAX/1I1Ts3tfyo5eEs7JpmKsegHs/ 6 | 9fIi 7 | Private-Lines: 1 8 | 0cPG5BR80jQcJmHKs6IjpHS3R4/CTnudnJB4BcjaqKlRk0l603GVMDzTxkaICCb8 9 | Private-MAC: 381cff136b2516331ff4511cf382533fc14f0aeb 10 | -------------------------------------------------------------------------------- /sshd-sources/tomcat-apr-5.5.23-sources/org/apache/tomcat/jni/PoolCallback.java: -------------------------------------------------------------------------------- 1 | package org.apache.tomcat.jni; 2 | 3 | public abstract interface PoolCallback 4 | { 5 | public abstract int callback(); 6 | } 7 | 8 | 9 | /* Location: C:\Users\lgoldstein\.m2\repository\tomcat\tomcat-apr\5.5.23\tomcat-apr-5.5.23.jar!\org\apache\tomcat\jni\PoolCallback.class 10 | * Java compiler version: 2 (46.0) 11 | * JD-Core Version: 0.7.1 12 | */ -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/ca/ca_ecdsa_521: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MIHcAgEBBEIBQx2B7LR7oqvR8yOLNlhRG5QwJz3SZBZPIu+9vpYxY4Sp5Oz3oWP2 3 | KyYN5zul94SXniUOgtFXQLbKqd1lE4i7JNWgBwYFK4EEACOhgYkDgYYABAGx2Z4I 4 | ejCgPfBfQBXCUeQsrGtKdou6t3Ns1W6An6GNxmue23kQtnvCfILxTDhmT8Z+0h26 5 | /+hWjT8pvz3omwIacgHbI+BLIx+1T3XIhDxKuCXvEkuOCyDqgkgOO1zurUn6THsU 6 | i6OvYCTy4d0Krr5oZIIaudPvzHW2ppctMrKJElnjQw== 7 | -----END EC PRIVATE KEY----- 8 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/host/host01.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7i37lmgscPdJ9l5hUOkkyyj8ZJwmeFhl4/wUKY4P3ckV9Y3YjVNVgba1Phy8ZnGCx7NAVJHOChmTCjDBL6QUgY4NqkEbwSRHnV9bb1+K4Wg5nems++Pga2JCKfkDXrabPIuSKr2l2qj6RPPEIj+vNyTQEk3xA+kTDZMQhADP/UOkBFQGpMnymSP1x7Wh8DXgV4i0uVJwZEd2ppD8uSUXUVihcC/F0E3Bb0Wue4KHECNeo/bC8Swrku7t7GQhj+IrXo1LGtjHc8xImVJtEK8LSytKkUidsXjWEJyvhijNTW7JxQt8lxlPs0ZuRpckRwDRUZx70aNVD/vqIIdFFstRl host01 2 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/host/host02.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC05DSFmpv+X8Bp1oFxY8gFq5vKrjqqnWb6RjJ4HczTsuZ+ZT1ma1OXPKOpR8wtwyH/vJ62pKCS1c30WkiLxUkqQFZWeQYrQnoqrdtytQQz+ZAQ/R/0WUVIV6n+I5Kge0cqRh2mOhlsUWxAgvGRI7qqBsG5dCPV1Ja9CJHXRhExbl05fVaTJmy8h8Fh33pVA8UZ9nnuCkQsrj66/mKxnLOzvaFnoimfDaTeoqzpWN9HL7dp78fiGh7S7C9lJ24mULdreAMIC298Ry2mwj2XvOiRar1CFNocEWF0JYSPpkJa+3u2EfIjq6kQqfziQlKiz0fBrFFD5kXAuB53dXux4zs5 host02 2 | -------------------------------------------------------------------------------- /docs/changes/2.12.1.md: -------------------------------------------------------------------------------- 1 | # Introduced in 2.12.1 2 | 3 | ## Bug Fixes 4 | 5 | * [GH-458](https://github.com/apache/mina-sshd/issues/458) Singleton thread pool for kex message handler flushing 6 | * [SSHD-1338](https://issues.apache.org/jira/browse/SSHD-1338) Restore binary compatibility with 2.9.2 7 | 8 | ## New Features 9 | 10 | ## Behavioral changes and enhancements 11 | 12 | ## Potential compatibility issues 13 | 14 | ## Major Code Re-factoring 15 | 16 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user01_ecdsa_521: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MIHbAgEBBEGL63JxXy9lC0pzNH9YMXCsabvcm0KFULd9VGYC1dHf/Ejm1IV8tYgU 3 | ae5x4UPffq4ATKJqJeFy1laTXC8Wc5Zz7KAHBgUrgQQAI6GBiQOBhgAEAf+G3lOl 4 | 85DYEF2oq60g8ENKWCWfbmBox2NSKwsNroUNIyLxsZtXkaFfIy0IRIPBh8IcL5c+ 5 | xF+OqKxH6/tA7ZoEARHj0EpCIQFwhlGfkzvvbay8+2f58jiMVeMrkBHXQQKLg9Yp 6 | 3ghyhlgwI+kPA0xTQcjTWFOW5CWRf/CriHqweBj9 7 | -----END EC PRIVATE KEY----- 8 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/common/kex/extensions/client/bob_key.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFjcevVKqkkhD1JsV8YwbB5XLyODZMQfcYLUrQu51AcnCiBGL515t0KpS25IhNuk+GOR5lKT2urX3x3pGFPpNCZj0nzAsvb/5VdmT+sxUQSN5dBLciZGcva9WaQC6e/ovB8MYcii+SHCPf+WoZamEMAqcfJe6w8PBDc3gsUaDHBe9EapyXOY/wf4oNZpo9qmTUBkIEigPglsvx9oG0s1TTWv6kHewgq9+w8nkPE8StOF+s+4OohsDdrESoWWBfhpWXfIydJaN+EuE7vEPdjCu1SFqece3yllCjkWTAIZYOmQbfGz6ordkAKuEwUxO8+4NLzeMO0TM13kphvgqeQ48x user01 2 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user02_ecdsa_521: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MIHcAgEBBEIBjW3thfH6BCxFofMLTR0VBqfhqOooiP1UsIsG8CNOn8hq8NdQfiyF 3 | R2r9Cv15qj51UJHWqXL3npDQtV66ua2TJv2gBwYFK4EEACOhgYkDgYYABAGnrzzT 4 | HBNvuomdPlQhf004Vwg0l9dMI5yoKLAWPLEzo8DhJEvHzVlTKy5Q7XUu3Fv0kpG1 5 | nJFS9K0fuPMI0cIS3QF1ZhWX0s2zDAKhlUtSRlkPgyP6HGDXQDlFsRPX5ihbEA5V 6 | jvigcaul/6g2jCiaquVlkLbyAqdNh9wNFZMu+z0AmA== 7 | -----END EC PRIVATE KEY----- 8 | -------------------------------------------------------------------------------- /sshd-sftp/src/test/resources/org/apache/sshd/sftp/client/ed25519_key: -------------------------------------------------------------------------------- 1 | -----BEGIN OPENSSH PRIVATE KEY----- 2 | b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW 3 | QyNTUxOQAAACBbwMG5AH0I3R787lv7XKYJkA5p5PoRSCC3YNlHheI+iwAAAIhHK6krRyup 4 | KwAAAAtzc2gtZWQyNTUxOQAAACBbwMG5AH0I3R787lv7XKYJkA5p5PoRSCC3YNlHheI+iw 5 | AAAECegC4DHWX/fh2doVuwKRnSsBRWLsgptHoiJvir77yQGVvAwbkAfQjdHvzuW/tcpgmQ 6 | Dmnk+hFIILdg2UeF4j6LAAAAAAECAwQF 7 | -----END OPENSSH PRIVATE KEY----- 8 | -------------------------------------------------------------------------------- /sshd-benchmarks/src/main/resources/org/apache/sshd/benchmarks/ed25519_key: -------------------------------------------------------------------------------- 1 | -----BEGIN OPENSSH PRIVATE KEY----- 2 | b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW 3 | QyNTUxOQAAACBbwMG5AH0I3R787lv7XKYJkA5p5PoRSCC3YNlHheI+iwAAAIhHK6krRyup 4 | KwAAAAtzc2gtZWQyNTUxOQAAACBbwMG5AH0I3R787lv7XKYJkA5p5PoRSCC3YNlHheI+iw 5 | AAAECegC4DHWX/fh2doVuwKRnSsBRWLsgptHoiJvir77yQGVvAwbkAfQjdHvzuW/tcpgmQ 6 | Dmnk+hFIILdg2UeF4j6LAAAAAAECAwQF 7 | -----END OPENSSH PRIVATE KEY----- 8 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/util/security/SecurityUtilsTest-EC-521-KeyPair: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MIHcAgEBBEIBUacw+zn8Mw0PYaqqtAlOyaVXARegI6sK5YBhl5E1l9sqTzVN77ce 3 | 1RrqQ8smfvZ6Hiw5gdGcPTszbiorVV5npg6gBwYFK4EEACOhgYkDgYYABACg4siC 4 | q1iqr4U/spXmw6b2VwBMsof7XLQGoD9wfwUikb8XWthNSmPP1nL6rlzJ5j8Bezn9 5 | BSSDfVAJfgqxmGIHdgHRVc0mkdq1/Q/DKhBgRyjZc29eo0o2ck3SNGNVaAabRYj6 6 | ck/iub/U6trKM7bdqy/joYYMwZdxLyYW5YxkPbqEfQ== 7 | -----END EC PRIVATE KEY----- 8 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/ca/ca_ed25519: -------------------------------------------------------------------------------- 1 | -----BEGIN OPENSSH PRIVATE KEY----- 2 | b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW 3 | QyNTUxOQAAACBVMJkvCS7E0MCWRhfINq+t8APo4bhWoCetXw+egDm57AAAAIijIXwwoyF8 4 | MAAAAAtzc2gtZWQyNTUxOQAAACBVMJkvCS7E0MCWRhfINq+t8APo4bhWoCetXw+egDm57A 5 | AAAEDWfYppRPWCAnL67YA16TfXPy9Zt3hjabNzTSlDiadxyFUwmS8JLsTQwJZGF8g2r63w 6 | A+jhuFagJ61fD56AObnsAAAAAkNBAQID 7 | -----END OPENSSH PRIVATE KEY----- 8 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user01_rsa_sha2_256_2048.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFjcevVKqkkhD1JsV8YwbB5XLyODZMQfcYLUrQu51AcnCiBGL515t0KpS25IhNuk+GOR5lKT2urX3x3pGFPpNCZj0nzAsvb/5VdmT+sxUQSN5dBLciZGcva9WaQC6e/ovB8MYcii+SHCPf+WoZamEMAqcfJe6w8PBDc3gsUaDHBe9EapyXOY/wf4oNZpo9qmTUBkIEigPglsvx9oG0s1TTWv6kHewgq9+w8nkPE8StOF+s+4OohsDdrESoWWBfhpWXfIydJaN+EuE7vEPdjCu1SFqece3yllCjkWTAIZYOmQbfGz6ordkAKuEwUxO8+4NLzeMO0TM13kphvgqeQ48x user01 2 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user01_rsa_sha2_512_2048.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVnVn/nWyHSk9loigNNx9SnmQXXXxmjwZjB2LlbJP4yM2vL1jFGZRv1SZ1IK8WDykfztIAG/2TEdnyhpa2G9tvTP0yKmtFFKakjs4AlFRFpqGYThRQML5a1aPcWXe08pQ2bZmVPIqkiq5C3CeNu/HHvwqiZ1o+VVlZXS3eW1xWUed1QTIA18bT4HRZTMxiJsZagwmV/D0Gp+Vss0/iedbR9dYZNvQcIWiIWkAhvprmMNWRrVPGsh6hlAz3xWrMEGwwjRENsdwOgb2IxH+0m+U49ZAvs1FKE6Kb+hoP6J3MJFxtCJk6TVa0Cm9O7aFnnefusZQfRvSKES80/xsp/joV user01 2 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user02_rsa_sha2_256_2048.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8GhKZChZVThX7On3EnwsDpi/sxZk4nvJXlN5itbmxsnSnc/8l3aFjI9mdcskNMBP3DuHHv4001ijsdmKgAhhta4c/nuisQdKQVGVmp6ITaWqoyE0oLLYORtk24frLOcFFqsMgcP16YjTgAnxIvG9v3dyoVYCJATfQc7oNp2y/qo0Yas3Wag6bB2mLYOa9FKPU5BI9xmkZu8WRmMz2VbhUSVqyooUZsNA03f8UiGvewL616mFx/WkX4JUYdc8PcvV8f/9HDdQ6HWFXPwSMP1R6uClnD+XMZIVDDFia6y2+1D/o+C+U4MIa7hVFqkTGVKwnpAuRRTVhao4c0/gZoKWt user02 2 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user02_rsa_sha2_512_2048.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQClfk6FdR2CQ5y/VI3rRyDWTL1HDkLBGOSRCQ/TMFTaItPEenAAiKVliZpU9zyCTkQvM1tvryVJP7p17My4UIJGtdz6fd+MfXoxbgYLSMyA52TESr4q80Xe8cZsasHaWRb7qizjVYbqA21+KCKvdWtikVhCSHbcesfBb0ZLYB2/4u9K2MqWOb5u4hvc1flMQgccZOYOTxoPMwlJr7iLtZM1XqveZtWQvL0OgCJllCHyGc3ppmpfN0PeTcwhgHUJaGEIRaZNtAZot+pVsvix7pImqTSmXyaChdn6O0fHmIHNpeUMW3e819B38Vyu9XSntvzbro2nLbCQUHFDI0lGGVLh user02 2 | -------------------------------------------------------------------------------- /sshd-sources/tomcat-apr-5.5.23-sources/org/apache/tomcat/jni/PasswordCallback.java: -------------------------------------------------------------------------------- 1 | package org.apache.tomcat.jni; 2 | 3 | public abstract interface PasswordCallback 4 | { 5 | public abstract String callback(String paramString); 6 | } 7 | 8 | 9 | /* Location: C:\Users\lgoldstein\.m2\repository\tomcat\tomcat-apr\5.5.23\tomcat-apr-5.5.23.jar!\org\apache\tomcat\jni\PasswordCallback.class 10 | * Java compiler version: 2 (46.0) 11 | * JD-Core Version: 0.7.1 12 | */ -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/util/security/super-secret-passphrase-RSA-AES-256-key.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDNUSajd7RzgqvQ2Q2em3CFA4Fh2f8YJkzJTPrcn9L9SFZnent2rABlVVr216jh3hAjhRFEkRhsoWUxUB7UYN6Ox/hGXrfCtD9wB0QbpOjNb0tnSovl3e+LfnWO5mpaRAb9croiuKVwQXuiwLNOQqs5C2wvLJhc77U4myuvFycYQ9Gh9g12g05Q8Qs+Du6hFSV1n1ZDMTtiVYknhe2gCLmBh1ghpaGeG3eWpd8EXumTrpwrylb1hJtj4yo748dXFa/YUJpqzCNyoA+0aY+v0MwgxZcS6zWt5VQ3yqRi4YrXX7vvhz80rKmJQlEhvM9rVKAwKc/qkJdTWlU+v0+/zY7/ hello@world -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/ssh2/rfc4716-multiple-headers.ssh2: -------------------------------------------------------------------------------- 1 | ---- BEGIN SSH2 PUBLIC KEY ---- 2 | Comment: "1024-bit RSA, converted from OpenSSH by me@example.com" 3 | x-command: /home/me/bin/lock-in-guest.sh 4 | AAAAB3NzaC1yc2EAAAABIwAAAIEA1on8gxCGJJWSRT4uOrR13mUaUk0hRf4RzxSZ1zRb 5 | YYFw8pfGesIFoEuVth4HKyF8k1y4mRUnYHP1XNMNMJl1JcEArC2asV8sHf6zSPVffozZ 6 | 5TT4SfsUu/iKy9lUcCfXzwre4WWZSXXcPff+EHtWshahu3WzBdnGxm5Xoi89zcE= 7 | ---- END SSH2 PUBLIC KEY ---- 8 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/util/security/super-secret-passphrase-RSA-AES-128-key.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/oDbs/yYxBdT02ldP6JIrcETJQ+TCml1tHYuo8cIQp0DZCgRZiEZ4foucAT8R/vLK01nnjRzrI42MXiCzyAHb1sPRD0Fsbpa4TFJczPBBRM2mp56airnArQUMmg/ZKlOf82hn+u7Kgn+ljyjYG5FrdoUBju62i0H4+oBfX+pTkd5ruUgqLyPUC3qtNLwjS4PIPAda/pfpsi9UawQ4ommWCCLlwK55NiSrPDBwKNuVWROcQps2NZRxzRLQEiiCEVBEdiUqqUQ+dg2beLV/4cCS860ZZRvCfe+ko8TUBJ7SLtcrvOEYJOKIZDVhcnQKN/wyXCHExSYytUconlFn/9YX root@devenv-aas -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-ec-521.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MIHuAgEAMBAGByqGSM49AgEGBSuBBAAjBIHWMIHTAgEBBEIAliKmTYJEBwcWV4a+ 3 | nbS69ht7d3mvUrp60m7T+gAXxUpb5XNWwaxa3PxRY9Mm4Or8mOfPa8d6rSlNARFP 4 | mU/zOFuhgYkDgYYABAAmm+nrn29TxAonRop25S9DFRX30ci2E+b3qDBy94N+A06n 5 | Q+wLo+vK95KbG461R9JUXBlH2qLQnLhUle5KpNw9nwAy5vZgrwqmCB1cdDarkTGr 6 | FpkVsrovB6mD7nxY/13wws1Ll1or3Bsb6ZQfnZ9VloaEVnnc0QLeO8HaRxif865D 7 | tA== 8 | -----END PRIVATE KEY----- 9 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/ssh2/ecdsa-sha2-nistp521-PublicKey.ssh2: -------------------------------------------------------------------------------- 1 | ---- BEGIN SSH2 PUBLIC KEY ---- 2 | Comment: "521-bit ECDSA, converted by lyor@localhost.localdomain from " 3 | AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBACg4siCq1iqr4U/sp 4 | Xmw6b2VwBMsof7XLQGoD9wfwUikb8XWthNSmPP1nL6rlzJ5j8Bezn9BSSDfVAJfgqxmGIH 5 | dgHRVc0mkdq1/Q/DKhBgRyjZc29eo0o2ck3SNGNVaAabRYj6ck/iub/U6trKM7bdqy/joY 6 | YMwZdxLyYW5YxkPbqEfQ== 7 | ---- END SSH2 PUBLIC KEY ---- 8 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/util/security/SecurityUtilsTest-RSA-KeyPair.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAxr3N5fkt966xJINl0hH7Q6lLDRR1D0yMjcXCE5roE9VFut2ctGFuo90TCOxkPOMnwzwConeyScVF4ConZeWsxbG9VtRh61IeZ6R5P5ZTvE9xPdZBgIEWvU1bRfrrOfSMihqF98pODspE6NoTtND2eglwSGwxcYFmpdTAmu+8qgxgGxlEaaCjqwdiNPZhygrH81Mv2ruolNeZkn4Bj+wFFmZTD/waN1pQaMf+SO1+kEYIYFNl5+8JRGuUcr8MhHHJB+gwqMTF2BSBVITJzZUiQR0TMtkK6Vbs7yt1F9hhzDzAFDwhV+rsfNQaOHpl3zP07qH+/99A0XG1CVcEdHqVMw== lgoldstein@LGOLDSTEIN-WIN7 2 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/util/security/super-secret-passphrase-RSA-AES-192-key.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCutvykV6G6t4JlLhlJOQKknSB++PXLTtuSjXaH77hUUEl/yc9VbEsfOz1NySBRQDWT0sgRZ1D2YAxaIvK9+0wZPnRNO1ptDrwj650Gflh8vKkEQOlHH7ISTxQTHtyHGeXfm3Bl+qqxTMPG5gcxxkKINMvKAkNYBnOyVX1OXUvqtM1jx6THlfWPQ9yFuVmZDVj1W5VItxjG293RejbjN1EjhhGRBiqwczcIPgPiMDfR0+xFNEQt6YD4k9TFEkLmIfCn+fcqKJhP/z99bRosMHtkRwfX/Rco+G9dRwe1sHvVH7ETeS7v3vl3WoM58AlpYYGUIXsxozRdGE93AmTkaSIj SecurityUtilsTest -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user01_ed25519: -------------------------------------------------------------------------------- 1 | -----BEGIN OPENSSH PRIVATE KEY----- 2 | b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW 3 | QyNTUxOQAAACC7dQvgCaYdQG4HLI6Mthl3e3ERUhfoCCbd0FQhr9+PkgAAAJAKIo9vCiKP 4 | bwAAAAtzc2gtZWQyNTUxOQAAACC7dQvgCaYdQG4HLI6Mthl3e3ERUhfoCCbd0FQhr9+Pkg 5 | AAAEBZl/1FifhcKqwxl3AojTWhShpBdiOOrt5HkDMZI3Z/tbt1C+AJph1Abgcsjoy2GXd7 6 | cRFSF+gIJt3QVCGv34+SAAAABnVzZXIwMQECAwQFBgc= 7 | -----END OPENSSH PRIVATE KEY----- 8 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user02_ed25519: -------------------------------------------------------------------------------- 1 | -----BEGIN OPENSSH PRIVATE KEY----- 2 | b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW 3 | QyNTUxOQAAACDNVrTdxVtNDmxeZJk0eGy1PIsVcAGFF9/dK8XwELR6LAAAAJAsuPO+LLjz 4 | vgAAAAtzc2gtZWQyNTUxOQAAACDNVrTdxVtNDmxeZJk0eGy1PIsVcAGFF9/dK8XwELR6LA 5 | AAAEBlPeJBWRG8pUWEpK+1/EVbPuB6B+13ITJO/dCHyYwbk81WtN3FW00ObF5kmTR4bLU8 6 | ixVwAYUX390rxfAQtHosAAAABnVzZXIwMgECAwQFBgc= 7 | -----END OPENSSH PRIVATE KEY----- 8 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security 2 | 3 | If you suspect you have found a security vulnerability in [Apache MINA sshd](./README.md) 4 | code, please read the [Apache Software Foundation Security Policy](https://www.apache.org/security/) 5 | for how to report the issue. Please do _not_ report the details publicly until the report 6 | is reviewed and a fixed version has been published. More details are in the description 7 | of the [ASF Security Vulnerability Process](https://www.apache.org/security/committers.html). 8 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-ec-384.enc: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | Proc-Type: 4,ENCRYPTED 3 | DEK-Info: AES-128-CBC,95B06BA60C7CEEB7218539CE2E9350C0 4 | 5 | 1OxK06YnBrWlzq5mrdpK9eH+dnD6bcZoVxArviv31sfufJWnb66zKW4F8UpZfWCf 6 | vCprZrtuPBrNTDOYWTf6gIxUdAowyGTVbIxrd2fXjFxUm9HnZzdsY9trxNY/XCJ2 7 | lc8SRB8wKpIHnaXRh6VYZI2b6N5NNI9AzjngstJ0O/q/sGCJ3tEAX7YsgSSTHM0m 8 | AeSmgByVG9XFxa2cTkIQPgb+O4uP2/An3uGseUcxvg0= 9 | -----END EC PRIVATE KEY----- 10 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/openssh/ed25519_priv: -------------------------------------------------------------------------------- 1 | -----BEGIN OPENSSH PRIVATE KEY----- 2 | b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW 3 | QyNTUxOQAAACBEBt1oY2cdMnZnJUhTdOBWHC0dAeWZ7NG8GPopqW0/XwAAAJDYh9FG2IfR 4 | RgAAAAtzc2gtZWQyNTUxOQAAACBEBt1oY2cdMnZnJUhTdOBWHC0dAeWZ7NG8GPopqW0/Xw 5 | AAAECfBl88SihhYYxvpum7/bwiTYgL5XsoVtD7FuQXFswI0EQG3WhjZx0ydmclSFN04FYc 6 | LR0B5Zns0bwY+impbT9fAAAAB3Rlc3RrZXkBAgMEBQY= 7 | -----END OPENSSH PRIVATE KEY----- 8 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-ec-256.enc2: -------------------------------------------------------------------------------- 1 | -----BEGIN ENCRYPTED PRIVATE KEY----- 2 | MIHsMFcGCSqGSIb3DQEFDTBKMCkGCSqGSIb3DQEFDDAcBAjagcJPAziEowICCAAw 3 | DAYIKoZIhvcNAgkFADAdBglghkgBZQMEASoEEMyM2yxIx6TfWEjmQ5cBGBkEgZCj 4 | fKeCfUZa1bXCD3Z/8belM6952CFyiR+oEomZyikn+SBfSKa+V/IgzrPRnxSYI96U 5 | Xg9FbEN4T4QgI0bwq6HQ3eypX+a2ZO6xVTJ/Bnr4R7cBh18Oom6m+2UYWHVAuox4 6 | 7KQnU2bNIz0kd6kTeOL6AerrHhj+t3x/QAtrhxt6nj/SdjCn2U8mSCRdiToIqdY= 7 | -----END ENCRYPTED PRIVATE KEY----- 8 | -------------------------------------------------------------------------------- /sshd-putty/src/test/resources/org/apache/sshd/putty/PuttyKeyUtilsTest-ecdsa-sha2-nistp256-KeyPair.ppk: -------------------------------------------------------------------------------- 1 | PuTTY-User-Key-File-2: ecdsa-sha2-nistp256 2 | Encryption: none 3 | Comment: ecdsa-key-20170917 4 | Public-Lines: 3 5 | AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBM99zj2+E6AN 6 | xMZ/2SKFP/fAvPfUJUdsgJyn4g7nf36vNpoaRyq1FyHLxyT34AgTl1n3DwcaBXXC 7 | O5pCv6xFwYk= 8 | Private-Lines: 1 9 | AAAAIQDdmu/Dr68r6a0PNbQUN1bX+zS6J5jFsOlEAx8sR73Tuw== 10 | Private-MAC: 012e0d61593a431ae84beb6216dd29e4b203c1c0 11 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/util/security/super-secret-passphrase-RSA-DES-EDE3-key.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAxvz5QWkCxznYbBOUbMFsCf+PJLauyZTcPsHLPZ/lHYH7EIa9s8NWbfFyTJXVwcuJiDCoRZ8d7KBahAuNjGeXsuJQuCqlLLl6GKoFnI0hnbKbFHDDSub+s3WvLdaTeF22qlTmlPb3RFYUO0cWk9MVpVNM6ev33CUGv4Dmbr0dZNkgUOkcPHiQpxKizsED+EWSVh1Ptx8AEDObNyFHJljbHUeJrHTIlcaekJheRXQWLvsJqKD0TN+Dkvi044MDWG9VjVyNsyXBCz1Vk9VaK1dNkkH+RDGTsFvFj7IPwBS/FliEVRrKOUgjMrmKUPbAm8IblIsno+HLZ60OB6X6hu2iHw== lgoldstein@LGOLDSTEIN-WIN7 2 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/certificateoptions/user_ed25519: -------------------------------------------------------------------------------- 1 | -----BEGIN OPENSSH PRIVATE KEY----- 2 | b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW 3 | QyNTUxOQAAACCU9Wxy5QryYq+yz0/wGe2JRivsNSOLlVpWnYyU+CwMNQAAAJDoxpYR6MaW 4 | EQAAAAtzc2gtZWQyNTUxOQAAACCU9Wxy5QryYq+yz0/wGe2JRivsNSOLlVpWnYyU+CwMNQ 5 | AAAEA3AWZLpl2q0Gkp72TsEhDm+O+02BaJSxbgr1JaVzIUBpT1bHLlCvJir7LPT/AZ7YlG 6 | K+w1I4uVWladjJT4LAw1AAAADHVzZXJfZWQyNTUxOQE= 7 | -----END OPENSSH PRIVATE KEY----- 8 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/openssh/ED25519-KeyPair: -------------------------------------------------------------------------------- 1 | -----BEGIN OPENSSH PRIVATE KEY----- 2 | b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW 3 | QyNTUxOQAAACB0Tsaj0scs8fYKMlnz2Mncky545NoICP9eGMGIpo5G3QAAAJjCVtyJwlbc 4 | iQAAAAtzc2gtZWQyNTUxOQAAACB0Tsaj0scs8fYKMlnz2Mncky545NoICP9eGMGIpo5G3Q 5 | AAAEDjQpuV2OWHZVy7R09w6bw2DnBa1UdZrsAmQ7dPyxasx3ROxqPSxyzx9goyWfPYydyT 6 | Lnjk2ggI/14YwYimjkbdAAAADnJvb3RAdWJ1bnR1LTE1AQIDBAUGBw== 7 | -----END OPENSSH PRIVATE KEY----- -------------------------------------------------------------------------------- /sshd-openpgp/src/test/resources/org/apache/sshd/openpgp/ed25519-gpg4win-3.1.3.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP PUBLIC KEY BLOCK----- 2 | 3 | mDMEW5PrKhYJKwYBBAHaRw8BAQdAFEr4U460sxSsPsAlkOWUfwDKKcPKc7IbtGlO 4 | rRd1XKC0Jkx5b3IgR29sZHN0ZWluIDxsZ29sZHN0ZWluQGFwYWNoZS5vcmc+iJAE 5 | ExYIADgWIQSw+xFriixO62qMvtQcQjYkqkw8iwUCW5PrKgIbIwULCQgHAgYVCgkI 6 | CwIEFgIDAQIeAQIXgAAKCRAcQjYkqkw8i5KtAPwKzy3gOTZEMcPJa1QnuwubHUx8 7 | nGoWX1yt6wZMApIS0QD/fuwsTXfs/LnuUcpqvgFNAeVZ7Xj5Mq+Tm8b/tk+uJQ0= 8 | =rzUO 9 | -----END PGP PUBLIC KEY BLOCK----- 10 | -------------------------------------------------------------------------------- /sshd-sources/tomcat-apr-5.5.23-sources/org/apache/tomcat/jni/ProcErrorCallback.java: -------------------------------------------------------------------------------- 1 | package org.apache.tomcat.jni; 2 | 3 | public abstract interface ProcErrorCallback 4 | { 5 | public abstract void callback(long paramLong, int paramInt, String paramString); 6 | } 7 | 8 | 9 | /* Location: C:\Users\lgoldstein\.m2\repository\tomcat\tomcat-apr\5.5.23\tomcat-apr-5.5.23.jar!\org\apache\tomcat\jni\ProcErrorCallback.class 10 | * Java compiler version: 2 (46.0) 11 | * JD-Core Version: 0.7.1 12 | */ -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/docker/sshd_config: -------------------------------------------------------------------------------- 1 | Port 22 2 | ListenAddress 0.0.0.0 3 | Protocol 2 4 | #LogLevel VERBOSE 5 | #LogLevel DEBUG1 6 | #LogLevel DEBUG2 7 | LogLevel DEBUG3 8 | HostKey /keys/host_key 9 | ChallengeResponseAuthentication no 10 | KbdInteractiveAuthentication yes 11 | PasswordAuthentication yes 12 | PubkeyAuthentication yes 13 | PermitRootLogin no 14 | AllowAgentForwarding yes 15 | AuthorizedKeysFile /keys/user/%u/authorized_keys 16 | TrustedUserCAKeys /ca.pub 17 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-dsa-768.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MIIBCAIBADCB6QYHKoZIzjgEATCB3QJhAOTbYtlIg/uS0YgJUSWVXlfPLQHFCGec 3 | yTOwfDygaWpr/RfBBWYHEWwwYhbWSjSzVAhfC8KfBjTed1RQPKVoy3l3OcMlwec6 4 | AqzqOqL24Cr8mWbn5ub/SnShyRkqv1WbmQIVALoHQDnCtIDleu1W14tcvY7wWEw5 5 | AmEA3bBoHAT7oylL1sHORmiLbOfwBFtvVpbNyZCYNIf5SaCN/ykwu8GQXaWAxUXr 6 | X+n/thD5DtgTHrSFNmxqD7ubKuBpKogOiw5T1c8KJGU66fb1gJIa5lipI0ueShtv 7 | zuI4BBcCFQCnRkNf9FCNWWZ4rxNephcVNDwNKg== 8 | -----END PRIVATE KEY----- 9 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/util/security/EDDSAProviderTest-EDDSA-OpenSSH-KeyPair: -------------------------------------------------------------------------------- 1 | -----BEGIN OPENSSH PRIVATE KEY----- 2 | b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW 3 | QyNTUxOQAAACB0Tsaj0scs8fYKMlnz2Mncky545NoICP9eGMGIpo5G3QAAAJjCVtyJwlbc 4 | iQAAAAtzc2gtZWQyNTUxOQAAACB0Tsaj0scs8fYKMlnz2Mncky545NoICP9eGMGIpo5G3Q 5 | AAAEDjQpuV2OWHZVy7R09w6bw2DnBa1UdZrsAmQ7dPyxasx3ROxqPSxyzx9goyWfPYydyT 6 | Lnjk2ggI/14YwYimjkbdAAAADnJvb3RAdWJ1bnR1LTE1AQIDBAUGBw== 7 | -----END OPENSSH PRIVATE KEY----- 8 | -------------------------------------------------------------------------------- /sshd-putty/src/test/resources/org/apache/sshd/putty/super-secret-passphrase-AES-256-CBC-ecdsa-sha2-nistp256-KeyPair.ppk: -------------------------------------------------------------------------------- 1 | PuTTY-User-Key-File-2: ecdsa-sha2-nistp256 2 | Encryption: aes256-cbc 3 | Comment: ecdsa-key-20170917 4 | Public-Lines: 3 5 | AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBM99zj2+E6AN 6 | xMZ/2SKFP/fAvPfUJUdsgJyn4g7nf36vNpoaRyq1FyHLxyT34AgTl1n3DwcaBXXC 7 | O5pCv6xFwYk= 8 | Private-Lines: 1 9 | /8MdniIqAaST5t3/bRx4mFdFxqN8jIwI0Hh7VTy8IV143j+PktgGIoHsUwTiEujQ 10 | Private-MAC: be4b37d4b65ad09e6890534a2ba355599da796c6 11 | -------------------------------------------------------------------------------- /sshd-sources/tomcat-apr-5.5.23-sources/org/apache/tomcat/jni/Sockaddr.java: -------------------------------------------------------------------------------- 1 | package org.apache.tomcat.jni; 2 | 3 | public class Sockaddr 4 | { 5 | public long pool; 6 | public String hostname; 7 | public String servname; 8 | public int port; 9 | public int family; 10 | public long next; 11 | } 12 | 13 | 14 | /* Location: C:\Users\lgoldstein\.m2\repository\tomcat\tomcat-apr\5.5.23\tomcat-apr-5.5.23.jar!\org\apache\tomcat\jni\Sockaddr.class 15 | * Java compiler version: 2 (46.0) 16 | * JD-Core Version: 0.7.1 17 | */ -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/client/config/hosts/readGlobalHostsConfigEntries.config.txt: -------------------------------------------------------------------------------- 1 | # Global section first 2 | 3 | User global 4 | Port 7365 5 | IdentityFile ~/.ssh/github.key 6 | HostName 37.77.34.7 7 | 8 | # User override 9 | Host *.apache.org 10 | User mina-sshd 11 | 12 | # Port override 13 | Host *.github.com 14 | Port 443 15 | 16 | # Host name override 17 | Host 10.*.*.* 18 | HostName 7.3.6.5 19 | 20 | # Identity override 21 | Host 192.168.*.* 22 | IdentityFile ~/.ssh/internal.key 23 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/openssh/ed25519_priv.aes: -------------------------------------------------------------------------------- 1 | -----BEGIN OPENSSH PRIVATE KEY----- 2 | b3BlbnNzaC1rZXktdjEAAAAACmFlczI1Ni1jdHIAAAAGYmNyeXB0AAAAGAAAABBd4TeG6R 3 | nTxPVBs7RBbTmoAAAAEAAAAAEAAAAzAAAAC3NzaC1lZDI1NTE5AAAAIEQG3WhjZx0ydmcl 4 | SFN04FYcLR0B5Zns0bwY+impbT9fAAAAkEhppWFXgxEwjHxMohs/gtpb23Mqq8i714U5XR 5 | w/3U2g7fb78d+FT72IQfXbu3rVzbMPZJ4H1Fe4dcZWkyqDPNwXauNf6wDRUWyPNC8bkPGi 6 | niV79QaXlTJElS2p+hkbddVRnCgus+AHMxgjoe2VPBO/hxFoGGy218i65o9nRJyYSwTmkQ 7 | 66peerZYc2Z8Om8w== 8 | -----END OPENSSH PRIVATE KEY----- 9 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-ec-521.enc: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | Proc-Type: 4,ENCRYPTED 3 | DEK-Info: AES-128-CBC,931EFC85D93760463583D37717B8F0CF 4 | 5 | 7j5LXS7/7AXU/jmF5IwBvGUDwGuhpRoN6YqBZj6YeHb4zTfgSUKne7QUZiuL6yRh 6 | oRsFc6kvmYZBebttc1U07OioGZRH8AYEMCQiyoaSEOOftP6iCoYf/pGD6/P6N18a 7 | PjYMapvCo5IQmUNcp0C8387gPrfILKdkBnMvSPi4u1RFG9Ojqi/eeT9cjIFw0wPK 8 | FmVZ/MNseYfAw4XT+f/cy4u1g+KxybRUTOkzl7Fw4FbJ4FYUcw1gVyaANNvWiSAP 9 | e4yxr5wrZCNHq5YoXUMGGnR6aZgsdAwzSwvvtBSJVDQ= 10 | -----END EC PRIVATE KEY----- 11 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-ec-384.enc2: -------------------------------------------------------------------------------- 1 | -----BEGIN ENCRYPTED PRIVATE KEY----- 2 | MIIBHDBXBgkqhkiG9w0BBQ0wSjApBgkqhkiG9w0BBQwwHAQIhbtq9NfX+fwCAggA 3 | MAwGCCqGSIb3DQIJBQAwHQYJYIZIAWUDBAEqBBAyPaDMGYDxShlPI18+2mhEBIHA 4 | keIyfMXb3YXa+IZAh16VoETc5fT67iWZVoFWmhWXoL9UC3AqvsVyXeSs4jHJz201 5 | lVmxcfF9F/6DBDgkeNiGt8T822jEtrwCE5i889nGwleDxP7EVlTHESSR2dPXIMAi 6 | 7l1Q3LcORyR9odoiXMhNJUHafo//IsCioMhAhQE8MTU6KobCM9HX68Pann6x2hzC 7 | mVy9+macRjQ+iS2+O+uBobqSlsH+a4o0akgaAzvMtG1UiISmXPjrarrqIAMNnkXo 8 | -----END ENCRYPTED PRIVATE KEY----- 9 | -------------------------------------------------------------------------------- /sshd-putty/src/test/resources/org/apache/sshd/putty/PuttyKeyUtilsTest-ecdsa-sha2-nistp384-KeyPair.ppk: -------------------------------------------------------------------------------- 1 | PuTTY-User-Key-File-2: ecdsa-sha2-nistp384 2 | Encryption: none 3 | Comment: ecdsa-key-20170917 4 | Public-Lines: 3 5 | AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBNHjIMrdMfXw 6 | CUqBAhkZw0vXB+qypkiTcL1CmcopmPrKvGHFieFmedeCQotjwJkoAAeb5isZNOXy 7 | h+7TnHGNrE/pZkHuNwACilpOt659hbhR2OGHX0jdpb8y4RVkuPQssg== 8 | Private-Lines: 2 9 | AAAAMHNGt3UPG3evJVl1GRoXXnqTafWLDQdWA2A1tXi8oRW0hhHMRe9/v0SCGL7S 10 | nL3asg== 11 | Private-MAC: 6fb6e93559ecacfa468aa5ff9776e4d4283db5ba 12 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/openssh/encrypted-ED25519-KeyPair: -------------------------------------------------------------------------------- 1 | -----BEGIN OPENSSH PRIVATE KEY----- 2 | b3BlbnNzaC1rZXktdjEAAAAACmFlczI1Ni1jdHIAAAAGYmNyeXB0AAAAGAAAABD6oOtByA 3 | Lz6voAtzFm+6toAAAAEAAAAAEAAAAzAAAAC3NzaC1lZDI1NTE5AAAAICGIC5vIdd8i18nx 4 | 3SnWgZRn5+8Bb9xEmWIPmY9BdO5yAAAAoMs10qi1Qz8RlelB/Eg2Nex3s51BDtZ9njPQAz 5 | f7RQdQHYSXm9/v7YF/v1jDSsnvjY0IW39fR6dNlF/6NoYhVLtOw0K7baOOGtZRvPGU7bCv 6 | enJ1mQZm7/BvdxxJO9X3vQz52i48BlwgNKg+yy2r2I421eAolAAAXIQthy41cLtxF2+p+E 7 | 8Bbb3Vox5+GrwSTR/UIcmTcYepgOf+K0D7vUg= 8 | -----END OPENSSH PRIVATE KEY----- 9 | -------------------------------------------------------------------------------- /NOTICE-bin.txt: -------------------------------------------------------------------------------- 1 | Apache MINA SSHD 2 | Copyright 2008-2021 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | 7 | Please refer to each LICENSE..txt file for the 8 | license terms of the components that Apache MINA depends on. 9 | 10 | Message logging is provided by the SLF4J library package, 11 | which is open source software, written by Ceki Gülcü, and 12 | copyright by SLF4J.ORG and QOS.ch. The original software is 13 | available from 14 | 15 | http://www.slf4j.org/ 16 | 17 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/openssh/ed25519_priv.gcm: -------------------------------------------------------------------------------- 1 | -----BEGIN OPENSSH PRIVATE KEY----- 2 | b3BlbnNzaC1rZXktdjEAAAAAFmFlczEyOC1nY21Ab3BlbnNzaC5jb20AAAAGYmNyeXB0AA 3 | AAGAAAABA2JD0aaDf2m9pM87fx9GXMAAAAEAAAAAEAAAAzAAAAC3NzaC1lZDI1NTE5AAAA 4 | IEQG3WhjZx0ydmclSFN04FYcLR0B5Zns0bwY+impbT9fAAAAkLehuGwl5NqaCm6xEsKx/f 5 | WXQHUgB031Ebw3+AECzdRq0iiT7eCGcznhV+BikZwNpW8zxv+IHpu8vFfr9iBhwsNvsq8s 6 | RrkFkpMzSbolB1Mk9Z5QYriWD+K/rnS5XCFxaKb4u3JVf0+23zoK5vqYOuLgQdDKKjWuH+ 7 | /JQMhx9OQhLnmBzJQ3ZeFx5vl5+oJVm5waMU6cR/KX6zsjiW3Dml8= 8 | -----END OPENSSH PRIVATE KEY----- 9 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/openssh/ed25519_priv.cha: -------------------------------------------------------------------------------- 1 | -----BEGIN OPENSSH PRIVATE KEY----- 2 | b3BlbnNzaC1rZXktdjEAAAAAHWNoYWNoYTIwLXBvbHkxMzA1QG9wZW5zc2guY29tAAAABm 3 | JjcnlwdAAAABgAAAAQ8qJvRjQgZkwb0NCtf4AwxAAAABAAAAABAAAAMwAAAAtzc2gtZWQy 4 | NTUxOQAAACBEBt1oY2cdMnZnJUhTdOBWHC0dAeWZ7NG8GPopqW0/XwAAAJB55YqwTD7soc 5 | AjMXPZ8VP0kK8C7LJSNIefoJTtppUQ9J6ZrLZZjpSNMsBDQyJ8k1dSFmhaYd8jI0hJ0ojR 6 | GYmhlkp0U5Q4AJmq+eEEa6byBXHzMLVgdGRbof1k0dZJMr1A2jZ1AObJMCv/MAquJwTqNR 7 | FYZFKnUetphSVTTD2GrTv6k5SgKHlR4XunKWIOc8lhwl47INQmwWc+wxZOsBAs 8 | -----END OPENSSH PRIVATE KEY----- 9 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/docker/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # check that SSH_HOST_KEY is set 4 | if [ -z "$SSH_HOST_KEY" ]; then 5 | echo "env SSH_HOST_KEY must be set to a host keypair file path" 6 | exit 1 7 | fi 8 | 9 | # setup the configured host keypair to a known location 10 | ln -s ${SSH_HOST_KEY} /keys/host_key 11 | ln -s ${SSH_HOST_KEY}.pub /keys/host_key.pub 12 | 13 | # ensure permissions for private keys 14 | chmod 0600 /keys/host_key 15 | 16 | # run supervisord (which runs sshd) 17 | /usr/bin/supervisord -c /etc/supervisor/supervisord.conf 18 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-dsa-512.enc2: -------------------------------------------------------------------------------- 1 | -----BEGIN ENCRYPTED PRIVATE KEY----- 2 | MIIBLDBXBgkqhkiG9w0BBQ0wSjApBgkqhkiG9w0BBQwwHAQI9N/KKSEiWKYCAggA 3 | MAwGCCqGSIb3DQIJBQAwHQYJYIZIAWUDBAEqBBA2MXzwqcOEEYUN6caU8eomBIHQ 4 | hzWsjZTXe/p+/mrQsczQ89IRhkGmZiKqWuz6g5mnGomc9Z0HTg84LCxZLuBnsdpg 5 | vgz+8Pf5toA9ADzJ897A/Opn4UDsI2ES8UiQpSXgMUS4h9gQrTiRSiYCmgD4IgVy 6 | B3FH/GqgSGWbA3l8SnRxak8nafh+jKG4pBFRbJTmc7IlVJQ5UReZdl/I9QT6bZiu 7 | mpmLp95wRgkmRjhw42OKpfRUpdR09rlSG405ggWaJdzK/FXxcrt9GB7MquXkH1Rt 8 | DaPTE8LQ+JTn+eP/e+XkEQ== 9 | -----END ENCRYPTED PRIVATE KEY----- 10 | -------------------------------------------------------------------------------- /sshd-putty/src/test/resources/org/apache/sshd/putty/super-secret-passphrase-AES-256-CBC-ecdsa-sha2-nistp384-KeyPair.ppk: -------------------------------------------------------------------------------- 1 | PuTTY-User-Key-File-2: ecdsa-sha2-nistp384 2 | Encryption: aes256-cbc 3 | Comment: ecdsa-key-20170917 4 | Public-Lines: 3 5 | AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBNHjIMrdMfXw 6 | CUqBAhkZw0vXB+qypkiTcL1CmcopmPrKvGHFieFmedeCQotjwJkoAAeb5isZNOXy 7 | h+7TnHGNrE/pZkHuNwACilpOt659hbhR2OGHX0jdpb8y4RVkuPQssg== 8 | Private-Lines: 2 9 | MOgJnSZ8ZqGHFVtQvYKpOyTGWjMVIjIOMIUwhbxBuTiQ7WEyNPn9jjTsSwXtJxrG 10 | UI6NGeIqZ41P2e8JINhMIg== 11 | Private-MAC: 5ec40946270150ddfca35cce61f4265d7bfe7b7f 12 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-dsa-512.enc: -------------------------------------------------------------------------------- 1 | -----BEGIN DSA PRIVATE KEY----- 2 | Proc-Type: 4,ENCRYPTED 3 | DEK-Info: AES-128-CBC,064DBD119F0843A147B07B77505BBA75 4 | 5 | z45u1F+Jf8Nem2ZQoMB41VwhTzjeBXEMqc2Z3B1genm5KzLR2cadGBgzuqHTHk5Y 6 | utUO4dC81J+xxJS7DimQx1qxl8oZO90uKaTWrHl4OQDgU1qcTfXrvjsWpAL4RQ1a 7 | VMrPOpZg0sFxdUaeXv1WF6ynw9VhDE+ehFYyg2TFUXpiN5/Ug5JExaqe3KdSsBEU 8 | +I9JQDAjAcaL4+lStHhfgWesr3Oj6QvFJBflw/izdWs8b2/eAIQj80YLEC5VTRsg 9 | k8uvkxAxQj91nWif2aN03dZ9V9S7NDJF5jkPdhlrgMm62+qBMNgvG6m8VVs6AOUw 10 | c4Rbhcc3/6Fn8wk6/Zn8fw== 11 | -----END DSA PRIVATE KEY----- 12 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-dsa-1024.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MIIBSgIBADCCASsGByqGSM44BAEwggEeAoGBAJ0LJQmP738/5ewkXAbtsbWGN5D6 3 | FuSezpojNfVn+4NcskmMUoYd+ffxr2/h1QI6Ps+MYI+Y7WDlZNpcdvVJwt+T/cIG 4 | 5OZW6JoyEV7bxkWhaHjzi8pXDcobKpQvCN71k6sn6g3qH51/zLx2Ou7EkyvlKnpn 5 | I+PJgkZddgXTfNn/AhUA/aeXoVjTeiyBzXERonFwy9MKeOUCgYBGWZAGGr19cklm 6 | MWtdx3cEep9bguagYwK1oyefTDvByzjsJ724x6KwL2+yKa2IHSdtyE/4Tz0P+OGi 7 | cEDeJImJa2W1SowAs+655jA5F8ppwxYRlkavVIh8n1BbwXjSmoabbjexR06bipLs 8 | /x70va1Wy51gb+URwnMTLnehDg4ANQQWAhR+qXM1Qljbmu6dQdky/yW3mTxJaA== 9 | -----END PRIVATE KEY----- 10 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/openssh/encrypted-RSA-KeyPair.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC4LItGT1NmcrmLpaXPpFxBMitwdSKjcrEStLAEj8r4dXavQXFOYPhRHqmaD7w6US754o8GBOi/OGKBWCv3kDtb9Yv8R5SVgsNbvYU2HPfCQdd2FMuolC3TTtNn0FcXGy0htuM2scOvzwmtAhI4VUH5vJaALBerccrSX/UvIfN2JYCK1W5I3dHG+FNsXBOGsi9WCZ40qRZdxyTnNYK89SHiknDK8jcSfL/BPFd3v/GE/vPvX47UXZfvKZaADDdwl+O3lVLkWHs6RMMPiIGK8ot+fvF1iPk32wc77rilwXPdLb+q4aP+i/PXE/yVqimRmYoSGLk9ScQDnPQ8saamJuBxnc6Kpr/h6dQKVCjnvX8NC18kbl/aWe7xMn/YROjCkP2fnOjmFEtXJSgVOe1I3ktJv0dwcV3EdYlm44WnKU/OMQTvw1UzjHiEGgOGa6JmoZBoeelRKLzquko4ZPb6PV7OSqXB+PKL16Xh72N1BiGzCH75IdmDRYoGSWYO7qHM3/c= -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/certificateoptions/user_ecdsa_256: -------------------------------------------------------------------------------- 1 | -----BEGIN OPENSSH PRIVATE KEY----- 2 | b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAaAAAABNlY2RzYS 3 | 1zaGEyLW5pc3RwMjU2AAAACG5pc3RwMjU2AAAAQQRdW70pAcbl6MIzydj6hSXrSAFOEWyB 4 | cKDONMTfyB/q8I1i7FsjrIHOvxXkUj6JoDEi05t+aJ5Y7sQ/hafzaB14AAAAqE2+GDtNvh 5 | g7AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBF1bvSkBxuXowjPJ 6 | 2PqFJetIAU4RbIFwoM40xN/IH+rwjWLsWyOsgc6/FeRSPomgMSLTm35onljuxD+Fp/NoHX 7 | gAAAAhANxw0eUsfIgjb+TeiQNcPuwi6QhqHOCcFXacF++9/gQeAAAADnVzZXJfZWNkc2Ff 8 | MjU2AQ== 9 | -----END OPENSSH PRIVATE KEY----- 10 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/common/signature/ssh_host_rsa_key.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDq0+az6bCKulks7E/RQBGUNlo8Pxe8Ylwc7KF2PxTrlGtD2qEjNyLMkBGAJMOME5PKiAoUNpmgxA/2oDbNQUEQpHOISnqz58SrkYwtlbRPntiu1bfZKQBxgs8oP0nVZU30ck9CmUVWdOY3R+sy85lL/g1vEwgGQPJHmnARg76TlX1xaDaR2RsHR+dz5MfPgZUn3C1SSIWSEoiuTNoh9uthHulybAhnHccTCt+90HN7nUXGSuoiu6P+Wg0p3oqClMk548MOBtSNyPFsSKFEOoivPHOfIuP1j5Of+j9iYhTp6bIrqKkUeX/y6s9iuw/d/ZlKYp2/h913iCHQ+VlJVJa/C96FXzudZ67pmuJKIesGlYfQLz96Q/Tq5F+QuJm0wG0qUuq3Aa+LZcobOSw+Th/WEmQ9j9O6stZ4Pfh/BPUwPa12u19pLgKH8m25DYLjBLYZO+ZutoXMD5nG4h+bz4bl3KAA625JI3Yh2NUHpmPK6djRjMf1cye5cQJc5ck5O3U= chris@imac.home.koras.de 2 | -------------------------------------------------------------------------------- /sshd-sources/tomcat-apr-5.5.23-sources/org/apache/tomcat/jni/BIOCallback.java: -------------------------------------------------------------------------------- 1 | package org.apache.tomcat.jni; 2 | 3 | public abstract interface BIOCallback 4 | { 5 | public abstract int write(byte[] paramArrayOfByte); 6 | 7 | public abstract int read(byte[] paramArrayOfByte); 8 | 9 | public abstract int puts(String paramString); 10 | 11 | public abstract String gets(int paramInt); 12 | } 13 | 14 | 15 | /* Location: C:\Users\lgoldstein\.m2\repository\tomcat\tomcat-apr\5.5.23\tomcat-apr-5.5.23.jar!\org\apache\tomcat\jni\BIOCallback.class 16 | * Java compiler version: 2 (46.0) 17 | * JD-Core Version: 0.7.1 18 | */ -------------------------------------------------------------------------------- /sshd-putty/src/test/resources/org/apache/sshd/putty/PuttyKeyUtilsTest-ecdsa-sha2-nistp521-KeyPair.ppk: -------------------------------------------------------------------------------- 1 | PuTTY-User-Key-File-2: ecdsa-sha2-nistp521 2 | Encryption: none 3 | Comment: ecdsa-key-20170917 4 | Public-Lines: 4 5 | AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBADGM237T9rT 6 | zE++sOFDN0VWfYfojlQ8dYP82OlgA24Yh0ZpOsezBBiHtHfMHl9tWHmch1YKmH7B 7 | lOfqbOgcIhz9cwA2V7Nu3IUGqxZT18LOXEpcdyDSphJ6jsy1urqBLrOz4DF6Udyr 8 | rFV4OQELovf8YdUsM91YPfe1DfnSRi1I5v20uA== 9 | Private-Lines: 2 10 | AAAAQgE28iZoHARx+2VzL7Y45FaY44TngX2b4StlC8wOlYF7NY/ba+Pt2RT/WcNL 11 | ytmLdj5QeV/fFJ9x8i00mTU6KCF2AA== 12 | Private-MAC: 7379e9986066087dff9339d2b0b968c2b31f45c7 13 | -------------------------------------------------------------------------------- /.asf.yaml: -------------------------------------------------------------------------------- 1 | # See https://cwiki.apache.org/confluence/display/INFRA/Git+-+.asf.yaml+features 2 | github: 3 | description: "Apache MINA sshd is a comprehensive Java library for client- and server-side SSH." 4 | homepage: https://mina.apache.org/sshd-project/ 5 | labels: 6 | - ssh 7 | - library 8 | - java 9 | - apache 10 | features: 11 | issues: true 12 | dependabot_alerts: true 13 | dependabot_updates: true 14 | ghp_branch: gh-pages 15 | ghp_path: / 16 | 17 | notifications: 18 | commits: commits@mina.apache.org 19 | issues: dev@mina.apache.org 20 | pullrequests: dev@mina.apache.org 21 | jira_options: link 22 | -------------------------------------------------------------------------------- /sshd-openpgp/src/test/resources/org/apache/sshd/openpgp/super-secret-passphrase-ed25519-gpg4win-3.1.3.gpg: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP PRIVATE KEY BLOCK----- 2 | 3 | lIYEW5PrKhYJKwYBBAHaRw8BAQdAFEr4U460sxSsPsAlkOWUfwDKKcPKc7IbtGlO 4 | rRd1XKD+BwMClwoesYdnT6fDwn3XqonNzdO55Ya2MDM3/D1TWE/qIKGBqQ8YjIQm 5 | ePfZQfnwWcavlC9n8/+kKk2eHM1PNiBMRl/q7k7uA44pFv49Dq0xPrQmTHlvciBH 6 | b2xkc3RlaW4gPGxnb2xkc3RlaW5AYXBhY2hlLm9yZz6IkAQTFggAOBYhBLD7EWuK 7 | LE7raoy+1BxCNiSqTDyLBQJbk+sqAhsjBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheA 8 | AAoJEBxCNiSqTDyLkq0A/ArPLeA5NkQxw8lrVCe7C5sdTHycahZfXK3rBkwCkhLR 9 | AP9+7CxNd+z8ue5Rymq+AU0B5VntePkyr5Obxv+2T64lDQ== 10 | =Zirx 11 | -----END PGP PRIVATE KEY BLOCK----- 12 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/openssh/encrypted-DSA-KeyPair.pub: -------------------------------------------------------------------------------- 1 | ssh-dss AAAAB3NzaC1kc3MAAACBAKA3Q7B+3oJL+0wfbPiXuydZGuNS0MITTbmcNrJVHGMHNc/ovspB+Zv0/1zjTNcmgTAJibFM2huxiyX5lpGR1tlLBzk2KbaoVD3PH37q3SQZMRQXrpvg7CPq/KERhTM5zfPlT32FTPhKc8e4qIneNc0IzYvIGJqrre9xUukGc/nTAAAAFQDb1DB/JoHvJFqa8wy4bCuxjgEIJwAAAIEAjwyuBgdwQ/yvby4lp1ef00f5baw81v2t0pe1l5oyPgqDDsAd6jXnhJzl9a2xKjQrHo8j0QcTKtycn02pvCWp4tOT2+0qMjRA40WQu6IMiviFjz9T0P9rXcz0DZ9OhPs/tgXsPME1HDPh1BONxkp8HOjvQhDsyP9tFJiMko9q7uYAAACACqsyoN8WZJLOoQU0y0ZnvgdyBQMPKLqOt8D7y3MsrBginIua85qGr9pSgSFzE7NYRWXPUhl+fNWCHkNwFFl9tVDKXWpjakBUAoik6nFVrezFK2i9WrVkqJzafPZ1gG0lAC6fsuV+qh9YEpr3NncyaA23Esf7iC6/kJlolTbA0LM= -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/openssh/DSA-KeyPair.pub: -------------------------------------------------------------------------------- 1 | ssh-dss AAAAB3NzaC1kc3MAAACBAPdrHLUwF2HhMkL5PbYMooN7uxecOuAlGzWMFwOX+o91AOguW+9N3ygeCBeQjMjpPHaV2IncoAMyQODWwFJTnN6civ3CKx8RA4s2p8g46KtH1nyNQsZWUM76k/CmzQ/1tw6RokIB8AE22Ho5rPc0mN8UPxmaZYNVo3atKLUneaOfAAAAFQDlt7TQxpK2LToeivbrlXwaC2OL/QAAAIBr0xTyQEnhnX5Sytau5WvvZ5yQTCM49xEV4DoyhIzvQYZ1hWQvJDvwwyMoAVlxux5hPeWyNr5zgtDvIStE4dIYWj4iZCdgZjcKizaZLy1EEe1nhiYqwGZLdmtviUR9q4DWmAOlwatQBq+eIogAH8L1ym+P4ilnfr6selqngkonuQAAAIBA/g1HOO1q7OsMm+zvdzQM9zMCQsBqf73Si68i4jQKYzEWtKosggRpfdwH8/h2Qq0GwyHQLHAmmhd+f5M77WPuLTwa4w416oHeU4efX8wHapQBmH+R1TxFSzFaSsbzQkx4/WR7DWwdqhF85Rnz5fD9Evuc2aGGYclHeuSBHwShYQ== root@ubuntu-15 -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-ec-521.enc2: -------------------------------------------------------------------------------- 1 | -----BEGIN ENCRYPTED PRIVATE KEY----- 2 | MIIBXTBXBgkqhkiG9w0BBQ0wSjApBgkqhkiG9w0BBQwwHAQIxgXC87+/X7gCAggA 3 | MAwGCCqGSIb3DQIJBQAwHQYJYIZIAWUDBAEqBBBo0o+bGMHUDHZhZztxNVOBBIIB 4 | AAgE1RiFWTlQyxNgH1gwOdQ//Dsz06jxOFc3hPtVGFehT8QE08nuy2O7dZvhQs22 5 | kwrOpQzWEjDM5X3+cQXg7t1yyeHjUvxlVICbBIUsJykwainNeINcg+Gp5FtXIFpM 6 | IqwU/aetIGGpNnJNBmzbOjzCJDQlkfltqwhUOJy6xPTDWyetqVI8qIOxVrywGb0B 7 | lx30Lpx8SVBQuYV11ul/9/jJpku+38y9kPBtbBNvxUCE+Vt5PVyURloMKeHOH1Pb 8 | kK7UCQXxX5D7qyVAm3oGPlHJhsMv6N6JZY9V7gPQ00r2i9TzfDgZYIW0NlQvtWxx 9 | CtYXHtBPz8gVL9kAjVVYlP0= 10 | -----END ENCRYPTED PRIVATE KEY----- 11 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/ssh2/ssh-dss-PublicKey.pub: -------------------------------------------------------------------------------- 1 | ssh-dss AAAAB3NzaC1kc3MAAACBAPdrHLUwF2HhMkL5PbYMooN7uxecOuAlGzWMFwOX+o91AOguW+9N3ygeCBeQjMjpPHaV2IncoAMyQODWwFJTnN6civ3CKx8RA4s2p8g46KtH1nyNQsZWUM76k/CmzQ/1tw6RokIB8AE22Ho5rPc0mN8UPxmaZYNVo3atKLUneaOfAAAAFQDlt7TQxpK2LToeivbrlXwaC2OL/QAAAIBr0xTyQEnhnX5Sytau5WvvZ5yQTCM49xEV4DoyhIzvQYZ1hWQvJDvwwyMoAVlxux5hPeWyNr5zgtDvIStE4dIYWj4iZCdgZjcKizaZLy1EEe1nhiYqwGZLdmtviUR9q4DWmAOlwatQBq+eIogAH8L1ym+P4ilnfr6selqngkonuQAAAIBA/g1HOO1q7OsMm+zvdzQM9zMCQsBqf73Si68i4jQKYzEWtKosggRpfdwH8/h2Qq0GwyHQLHAmmhd+f5M77WPuLTwa4w416oHeU4efX8wHapQBmH+R1TxFSzFaSsbzQkx4/WR7DWwdqhF85Rnz5fD9Evuc2aGGYclHeuSBHwShYQ== root@ubuntu-15 -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/util/security/SecurityUtilsTest-DSA-KeyPair.pub: -------------------------------------------------------------------------------- 1 | ssh-dss AAAAB3NzaC1kc3MAAACBAMg/IxsG5BxnF5gM7IKqqR0rftxZC+n5GlbO+J4H+iIb/KR8NBehkxG3CrBZMF96M2K1sEGYLob+3k4r71oWaPul8n5rt9kpd+JSq4iD2ygOyg6Kd1/YDBHoxneizy6I/bGsLwhAAKWcRNrXmYVKGzhrhvZWN12AJDq2mGdj3szLAAAAFQD7a2MltdUSF7FU3//SpW4WGjZbeQAAAIBf0nNsfKQL/TEMo7IpTrEMg5V0RnSigCX0+yUERS42GW/ZeCZBJw7oL2XZbuBtu63vMjDgVpnb92BdrcPgjJ7EFW6DlcyeuywStmg1ygXmDR2AQCxv0eX2CQgrdUczmRa155SDVUTvTQlO1IyKx0vwKAh1H7E3yJUfkTAJstbGYQAAAIEAtv+cdRfNevYFkp55jVqazc8zRLvfb64jzgc5oSJVc64kFs4yx+abYpGX9WxNxDlG6g2WiY8voDBB0YnUJsn0kVRjBKX9OceROxrfT4K4dVbQZsdt+SLaXWL4lGJFrFZL3LZqvySvq6xfhJfakQDDivW4hUOhFPXPHrE5/Ia3T7A= dsa-key-20130709 -------------------------------------------------------------------------------- /sshd-putty/src/test/resources/org/apache/sshd/putty/super-secret-passphrase-AES-256-CBC-ecdsa-sha2-nistp521-KeyPair.ppk: -------------------------------------------------------------------------------- 1 | PuTTY-User-Key-File-2: ecdsa-sha2-nistp521 2 | Encryption: aes256-cbc 3 | Comment: ecdsa-key-20170917 4 | Public-Lines: 4 5 | AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBADGM237T9rT 6 | zE++sOFDN0VWfYfojlQ8dYP82OlgA24Yh0ZpOsezBBiHtHfMHl9tWHmch1YKmH7B 7 | lOfqbOgcIhz9cwA2V7Nu3IUGqxZT18LOXEpcdyDSphJ6jsy1urqBLrOz4DF6Udyr 8 | rFV4OQELovf8YdUsM91YPfe1DfnSRi1I5v20uA== 9 | Private-Lines: 2 10 | +44AQO4aflPquBZbdB3UtdLuXuHV2u1YoghxYXPFGdhskMt+XjJhUlrOHNX8rmgR 11 | E9nni474zGw9ni/3LIZwMILQI/xTfiQm3t6nKFV8nyI= 12 | Private-MAC: 99c25e348a84de4876163758ad13b2ad1dc43629 13 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | Servers/ 3 | .metadata/ 4 | .recommenders/ 5 | .settings/ 6 | RemoteSystemsTempFiles/ 7 | .classpath 8 | .factorypath 9 | .project 10 | # Puthon related files 11 | .pydevproject 12 | *.pyc 13 | .checkstyle 14 | .eclipse-pmd 15 | .pmd 16 | *.iml 17 | *.ipr 18 | *.iws 19 | .idea 20 | .springBeans 21 | .externalToolBuilders 22 | 23 | # Maven formatter plugin 24 | */.cache/ 25 | .cache/ 26 | 27 | # Pre-release temporary files 28 | *.releaseBackup 29 | release.properties 30 | 31 | # VS Code 32 | .vscode/ 33 | *.code-workspace 34 | 35 | # Serialized objects 36 | *.ser 37 | 38 | # Locks and temporary files 39 | *~ 40 | .attach_pid* 41 | 42 | # OSX files 43 | .DS_Store 44 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/channel/stty-output-1.txt: -------------------------------------------------------------------------------- 1 | speed 38400 baud; rows 25; columns 80; line = 0; 2 | intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = ; 3 | eol2 = ; swtch = ; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; 4 | werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; 5 | -parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts 6 | -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon ixoff 7 | -iuclc -ixany -imaxbel -iutf8 8 | opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 9 | isig icanon -iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt 10 | echoctl echoke 11 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-dsa-768.enc2: -------------------------------------------------------------------------------- 1 | -----BEGIN ENCRYPTED PRIVATE KEY----- 2 | MIIBbTBXBgkqhkiG9w0BBQ0wSjApBgkqhkiG9w0BBQwwHAQIopXMTNYT5BsCAggA 3 | MAwGCCqGSIb3DQIJBQAwHQYJYIZIAWUDBAEqBBAujnXQdxhB+85Z13PvoQFaBIIB 4 | ELUQZnvoviICt8v4kOo140a7oLTabSFDhlrZwjs9zPtSvnz7ryxmVup8C3hYSqYk 5 | WFViBt8vz9YVsxDQb5ywshtneqAZlM0LxqpUnoXbLaWJGusRh+59xm+ahA6bplZA 6 | svMpdWvGp6CC4zB0Ej/hcwclUpsG90XsBo6yazwDTq42EO1hE1TbUGUiFPHjAPC+ 7 | FoCZlvMXUJ5zp5jZ0fDycIK6dx+xgUUcEaYGYhn/DVwb9+6hs5vS6iQf2USqlJ9B 8 | PJuO+fy8eGc4U5z6F2txi48LIaoaoSJOxXwP2/6M45r3PeRFSDCXStReEoWRXgzU 9 | hqhdnyapfWuER/e9kMAVQnPCQj+bQrpzQ8Bd7iVzD3eF 10 | -----END ENCRYPTED PRIVATE KEY----- 11 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/common/auth/super-secret-passphrase-ec256-key: -------------------------------------------------------------------------------- 1 | -----BEGIN OPENSSH PRIVATE KEY----- 2 | b3BlbnNzaC1rZXktdjEAAAAACmFlczI1Ni1jdHIAAAAGYmNyeXB0AAAAGAAAABCBJIf6Vh 3 | Kbhk1+gmJsv6C6AAAAEAAAAAEAAABoAAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlz 4 | dHAyNTYAAABBBL01p9qPAsYum1h7HXFpbvwIWyb7CbzbQK5qlo97xbPgYxguslezrgZZZg 5 | ITFVlzECSiXIpReOFQ0bZW78fo3D0AAADAgtIDr0uiaUbj81kc5vLKhTEKJ7x0uzbDQ0ga 6 | yKiwkK6gr1kes6k0HBtuBN2hh/Dr5qJ4Tnh3yMXsXiC+gjf+OOVGM7qK6XcxUFFG5LsfbN 7 | YlB3cOuhdCzgJJm6fyo77V3ZTyXcDIvChPrUWJ+R011SLND11JwCaIUia10QuWrWlHEBdU 8 | f0Zq5nrcbcCq0jEXtLDSrUDtok/aYeGXU+WLv64CxH2ytG6RRsGIkHcHwXEn5Yun6FwIyG 9 | ujI82JomIM 10 | -----END OPENSSH PRIVATE KEY----- 11 | -------------------------------------------------------------------------------- /assembly/src/main/legal/licenses/jpam.txt: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2003-2006 Greg Luck 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/certificateoptions/user_ecdsa_384: -------------------------------------------------------------------------------- 1 | -----BEGIN OPENSSH PRIVATE KEY----- 2 | b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAiAAAABNlY2RzYS 3 | 1zaGEyLW5pc3RwMzg0AAAACG5pc3RwMzg0AAAAYQRgBLD/P8MkXYpsPR6lkoIa4PhYn/k4 4 | /TwUMbBvndfwmovc9MQw1G8Mj7lToGAB8FJHg9vggTq7x5CJXhwOgsJpxq5S/Wa5G6nwnS 5 | Kdd+iC2Dp0EJ3lWOvxa88w2Xq0ZlIAAADYQEbbuEBG27gAAAATZWNkc2Etc2hhMi1uaXN0 6 | cDM4NAAAAAhuaXN0cDM4NAAAAGEEYASw/z/DJF2KbD0epZKCGuD4WJ/5OP08FDGwb53X8J 7 | qL3PTEMNRvDI+5U6BgAfBSR4Pb4IE6u8eQiV4cDoLCacauUv1muRup8J0inXfogtg6dBCd 8 | 5Vjr8WvPMNl6tGZSAAAAMGCmH1GBSAJGDD81YA1+wy05itqskoeIKxNZDaxGdxsDNArwhP 9 | zzpsi/JkUl+i3pgQAAAA51c2VyX2VjZHNhXzM4NAEC 10 | -----END OPENSSH PRIVATE KEY----- 11 | -------------------------------------------------------------------------------- /sshd-checkstyle-suppressions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-dsa-768.enc: -------------------------------------------------------------------------------- 1 | -----BEGIN DSA PRIVATE KEY----- 2 | Proc-Type: 4,ENCRYPTED 3 | DEK-Info: AES-128-CBC,C3EF65BAC3286E6B26FEC16E0B785197 4 | 5 | i+EWQIaQywBBpCPXBfn8OSZs3xsFnwMcVmexQi5q1l2ZALSVBar6lqA073xCLJT0 6 | 0J2BZhjvfHMksc/6yqguaFLGuE2z+/NXilxWXeKlt51fMbrnXmf+hA3ThwtoENDQ 7 | M+DaYjSmslqEhpGhkk6Upp7pRZnYqXbw1eX8DLMlvslNrVeasc32B9vV1aRXKmuI 8 | otpYCCqOemRdwkyPyqooc/eXUy/BYpVP0dP3hIAacUOObd9ZXVxwswQB9FlLEcYD 9 | 6aM2CFEq4acRU45GY8FbeiMdDVkGBbfxY6km6fZnyf0IpO0gaLdNB8qmuCp4fBeT 10 | AnZc8dwt1Ads1fH3rAgxbB5qi8k/g1rJK52OqJYwFf0YsYGsL3ak5vdagkNl1NyP 11 | +kP8UKK1TfLAOczzjOTqsKL4MrStZZ6iR3Sfga52I7Y6cvaNdNeT6C7VwxlN21kL 12 | h7B1AgoWQDM+dtjfqkwCsw== 13 | -----END DSA PRIVATE KEY----- 14 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/channel/stty-output-2.txt: -------------------------------------------------------------------------------- 1 | speed 9600 baud; 50 rows; 160 columns; 2 | lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl 3 | -echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo 4 | -extproc 5 | iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel iutf8 6 | -ignbrk brkint -inpck -ignpar -parmrk 7 | oflags: opost onlcr -oxtabs -onocr -onlret 8 | cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow 9 | -dtrflow -mdmbuf 10 | cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = ; 11 | eol2 = ; erase = ^?; intr = ^C; kill = ^U; lnext = ^V; 12 | min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T; 13 | stop = ^S; susp = ^Z; time = 0; werase = ^W; 14 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/signature/id_dsa: -------------------------------------------------------------------------------- 1 | -----BEGIN DSA PRIVATE KEY----- 2 | MIIBvAIBAAKBgQDIPyMbBuQcZxeYDOyCqqkdK37cWQvp+RpWzvieB/oiG/ykfDQX 3 | oZMRtwqwWTBfejNitbBBmC6G/t5OK+9aFmj7pfJ+a7fZKXfiUquIg9soDsoOindf 4 | 2AwR6MZ3os8uiP2xrC8IQAClnETa15mFShs4a4b2VjddgCQ6tphnY97MywIVAPtr 5 | YyW11RIXsVTf/9KlbhYaNlt5AoGAX9JzbHykC/0xDKOyKU6xDIOVdEZ0ooAl9Psl 6 | BEUuNhlv2XgmQScO6C9l2W7gbbut7zIw4FaZ2/dgXa3D4IyexBVug5XMnrssErZo 7 | NcoF5g0dgEAsb9Hl9gkIK3VHM5kWteeUg1VE700JTtSMisdL8CgIdR+xN8iVH5Ew 8 | CbLWxmECgYEAtv+cdRfNevYFkp55jVqazc8zRLvfb64jzgc5oSJVc64kFs4yx+ab 9 | YpGX9WxNxDlG6g2WiY8voDBB0YnUJsn0kVRjBKX9OceROxrfT4K4dVbQZsdt+SLa 10 | XWL4lGJFrFZL3LZqvySvq6xfhJfakQDDivW4hUOhFPXPHrE5/Ia3T7ACFQCE6flG 11 | nmVCAbzo9YsbdJWBnxMnBA== 12 | -----END DSA PRIVATE KEY----- -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/client/config/keys/id_dsa: -------------------------------------------------------------------------------- 1 | -----BEGIN DSA PRIVATE KEY----- 2 | MIIBvAIBAAKBgQDIPyMbBuQcZxeYDOyCqqkdK37cWQvp+RpWzvieB/oiG/ykfDQX 3 | oZMRtwqwWTBfejNitbBBmC6G/t5OK+9aFmj7pfJ+a7fZKXfiUquIg9soDsoOindf 4 | 2AwR6MZ3os8uiP2xrC8IQAClnETa15mFShs4a4b2VjddgCQ6tphnY97MywIVAPtr 5 | YyW11RIXsVTf/9KlbhYaNlt5AoGAX9JzbHykC/0xDKOyKU6xDIOVdEZ0ooAl9Psl 6 | BEUuNhlv2XgmQScO6C9l2W7gbbut7zIw4FaZ2/dgXa3D4IyexBVug5XMnrssErZo 7 | NcoF5g0dgEAsb9Hl9gkIK3VHM5kWteeUg1VE700JTtSMisdL8CgIdR+xN8iVH5Ew 8 | CbLWxmECgYEAtv+cdRfNevYFkp55jVqazc8zRLvfb64jzgc5oSJVc64kFs4yx+ab 9 | YpGX9WxNxDlG6g2WiY8voDBB0YnUJsn0kVRjBKX9OceROxrfT4K4dVbQZsdt+SLa 10 | XWL4lGJFrFZL3LZqvySvq6xfhJfakQDDivW4hUOhFPXPHrE5/Ia3T7ACFQCE6flG 11 | nmVCAbzo9YsbdJWBnxMnBA== 12 | -----END DSA PRIVATE KEY----- -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/ca/ca.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDJ91N5bxkxjzIZTsdiGlTkqew9BZIRIp8EMfHBJXY24KIHTsknwcKbHk9Kh4W2pTRUWJdt48VSa0+oj4lQqVLYEqovUCpma/1rbAb71IucjT0pVi9Lm6fu/xlDIRvw1B8wkaaYq9r6C85V2LAbmwoKfOE5ENyEsvLNuTkIIhAVtonPiEfGGGgzW+RzGdG6xO2fZKqV3O55PP0gxC3FIVCYwttuZQfxYmSCPPwRKiZWyzaF/d8mCgAQdT/vFfQ2yrcz63RlckMkViKq9ImLDnXHDXIoGLRtrEhig8WjRWkM1vcwwgLUIF+u4KSRvxxYt0u2uLwJ0yMbZUpqulp1cEMmW3xt40NsR/szd/2LBYqgs4xNKzhN0iMxQrkTmiZCMD+Icall0cp0wCJdgQjpl5uGmAcD9J0gZJyP8aVLxs/Z/ohnZocBMZBGiYjlq4wfP9ksTR/RCOj3/5dmmXN0e8r8u2xVb+pPzx4WsTyMWOX1bxa2zaIJbw1ak4D04WxKX6l/Sg+iI8NDrcYl4xocyGXLDNH9EA/rZoY8nOo94bZQWhSIn/V/jWM2X+ATpx0xFXKxAbsM9kuSihZYTQD8aFvKrBQ/t+jU+jUAmWuXXEvhq556JDrFU4FABcNmZ/EVqmRL5fYtYRKycGCLh1QXrWvqgF+7XV2F2zkozWq3W7dTCw== CA 2 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/server/config/keys/ssh_host_dsa_key: -------------------------------------------------------------------------------- 1 | -----BEGIN DSA PRIVATE KEY----- 2 | MIIBvAIBAAKBgQDIPyMbBuQcZxeYDOyCqqkdK37cWQvp+RpWzvieB/oiG/ykfDQX 3 | oZMRtwqwWTBfejNitbBBmC6G/t5OK+9aFmj7pfJ+a7fZKXfiUquIg9soDsoOindf 4 | 2AwR6MZ3os8uiP2xrC8IQAClnETa15mFShs4a4b2VjddgCQ6tphnY97MywIVAPtr 5 | YyW11RIXsVTf/9KlbhYaNlt5AoGAX9JzbHykC/0xDKOyKU6xDIOVdEZ0ooAl9Psl 6 | BEUuNhlv2XgmQScO6C9l2W7gbbut7zIw4FaZ2/dgXa3D4IyexBVug5XMnrssErZo 7 | NcoF5g0dgEAsb9Hl9gkIK3VHM5kWteeUg1VE700JTtSMisdL8CgIdR+xN8iVH5Ew 8 | CbLWxmECgYEAtv+cdRfNevYFkp55jVqazc8zRLvfb64jzgc5oSJVc64kFs4yx+ab 9 | YpGX9WxNxDlG6g2WiY8voDBB0YnUJsn0kVRjBKX9OceROxrfT4K4dVbQZsdt+SLa 10 | XWL4lGJFrFZL3LZqvySvq6xfhJfakQDDivW4hUOhFPXPHrE5/Ia3T7ACFQCE6flG 11 | nmVCAbzo9YsbdJWBnxMnBA== 12 | -----END DSA PRIVATE KEY----- -------------------------------------------------------------------------------- /sshd-contrib/src/test/resources/org/apache/sshd/contrib/common/signature/ssh-dss-1024: -------------------------------------------------------------------------------- 1 | -----BEGIN DSA PRIVATE KEY----- 2 | MIIBvAIBAAKBgQDIPyMbBuQcZxeYDOyCqqkdK37cWQvp+RpWzvieB/oiG/ykfDQX 3 | oZMRtwqwWTBfejNitbBBmC6G/t5OK+9aFmj7pfJ+a7fZKXfiUquIg9soDsoOindf 4 | 2AwR6MZ3os8uiP2xrC8IQAClnETa15mFShs4a4b2VjddgCQ6tphnY97MywIVAPtr 5 | YyW11RIXsVTf/9KlbhYaNlt5AoGAX9JzbHykC/0xDKOyKU6xDIOVdEZ0ooAl9Psl 6 | BEUuNhlv2XgmQScO6C9l2W7gbbut7zIw4FaZ2/dgXa3D4IyexBVug5XMnrssErZo 7 | NcoF5g0dgEAsb9Hl9gkIK3VHM5kWteeUg1VE700JTtSMisdL8CgIdR+xN8iVH5Ew 8 | CbLWxmECgYEAtv+cdRfNevYFkp55jVqazc8zRLvfb64jzgc5oSJVc64kFs4yx+ab 9 | YpGX9WxNxDlG6g2WiY8voDBB0YnUJsn0kVRjBKX9OceROxrfT4K4dVbQZsdt+SLa 10 | XWL4lGJFrFZL3LZqvySvq6xfhJfakQDDivW4hUOhFPXPHrE5/Ia3T7ACFQCE6flG 11 | nmVCAbzo9YsbdJWBnxMnBA== 12 | -----END DSA PRIVATE KEY----- -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/ca/ca_rsa2_256.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCo056tompaDabl0Zwp5oO22E+X0+gGXjtLdwsyux/KFR5/9sCmjL+6u/8ItEEHZ13ZmMnDAmM20uv4t24kavzQ0pgwVKzXELx69ly7D/Eyv4BxJTA8CdadDqWmywS6bBP7edSghEq26RXy9Abc/iXMDtt/QIwUUi8V15GqhPWBz5mLRusdEv7cqW5tbOAA5OxJqqEQhtc/dX5X3RbYQbVjMOIaVDQTmB/h9uxXLDpiMvyZ5AH+dE/j8VbEPsB44eGKAqeayhSMfY2G2iQj4sNScig3YPwxh8t5CgfSI7hhfsK3YeOk96lqTDP5h7HsIjG7PzOO7Xgp7I2Jl5jbOs+q2zpC7D8rD0wn+XmjB0szeo/kWSG3cRldCnwf34PZnti9qG9tkPaYHnVS5Ved32MRF9bgv5E4EPxYdKszkqGgNnOaZvT1LgZ7XNYvkw8oWJ4inzLPFLit1RwBeXw8ZvLAsuvRqxL5atjrAeHVVRCPxIXfB8r3NhAgxBHVjkHfla7Ftd2hmorsq4L91o//+TXnESnVJT+mhMIu3GedrcmjzghTapJQ+8TwHy5WT3aCcgriQ2XV3s41Bzq+k9gYmNbj/6bEJdXCiWp7IUKTWRKFV4EU3bB8vO+z9AKQ5xqvSpucothinzgOTYimFNvqqiNEe8RzJCulGCK1HINgY+OT9Q== CA 2 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/ca/ca_rsa2_512.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC6F5ZHn5eSVTdMKrwobHX/sLC77Pj2HH0W02y/fDEqp6NKRlZXNnl+6zMfUQW1nO/Bi7r6s7/5jd76HGoeNveveUIJuvL6VPlJkkjM3n1VWi3kmigK4y9jwEFOydpBmlcde2kQ6hjhWqC+nVHFGJeHJ7idggdXldT20LxGUP/a6vYgSjBNmPiLFjqr6OKjtd0Ivpmr3OU+8ByLa0OI+gZeQYooDd5LY6rrIMNpGxYX3MjlFlz5PudTqrR+C/DbVtYBxwB3TLyTmKs47SFWFytqrMyQ2cBJ6Q5nIMM6lwl6RFpLpodZJXGWhLfwGWe0ogeeVkVK7XzLvwlwJQZB6HKRjNQXKpvkZB6hV5UIyQQEHs3iE0iudbwvwBgw5Hr7WtsEYLobNeLkv4gkvnULZhSX5N7UV0cH0cktAHn4AupSFR48+5Nu1pZU8qRuv2tv3luv4/DPtmXquI2Bl1ZHvrxqMAaXRdPBYsYGPB4cXMR/6/2nfrsKm4lZXk4XPTAqqQo/3iEW0FLSoRgYdup7zR66FFC0ZtodxQ3zhJzzbJClnvnIm9qVrM7BbuKLJ9LfQv6NhbNvTWqFvbHpjeIUEfwwKQhkPEKhPa7zLeKkINweCDDwZnabzAVlfzDeT3empTSQ79Q9N8NZJ2baNqJzm3UdbfOGSv0aoOIsbbSV5IRt5Q== CA 2 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/openssh/encrypted-ECDSA-KeyPair: -------------------------------------------------------------------------------- 1 | -----BEGIN OPENSSH PRIVATE KEY----- 2 | b3BlbnNzaC1rZXktdjEAAAAACmFlczI1Ni1jYmMAAAAGYmNyeXB0AAAAGAAAABC87tUESJ 3 | etisVReP4hdLudAAAAEAAAAAEAAACIAAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlz 4 | dHAzODQAAABhBBiyCyD9jl71xak4XLDm9aK7Hms5Gg7TEXE79Ql6dk9WI0RLe/mcsJUAXo 5 | H/iYvK0N1byXZj8S6hTA1EKU7iqkfkglBVOJAKFHs912Q0tGaajZ+Jz9mzfz7vkHtxrm5x 6 | lQAAAOAgslZm8jV/FuTTqm864+GTcBLG+vFzSwCAgY0Kw6PwvzOKgXqBvy/HxuaGT4/5UU 7 | 3QGvlgGufM1NH1UUZ5I2Qnp2MaHLNXsB4bvW6ctvNn6303BmcG2jfFWMZaD39M6UvISkch 8 | GZpBcZyUjmY6KQlz9AQReG2A8DpL72Skr/0rzv9kAfT69k3snTsrIjhfskiazRtqd36us6 9 | Lh7iijZogfTvbaDRwkFR/+Wd5+jBX+rLYyZuDzcv2WahAZ06kj0EltW+czvGF9/BzDfdpB 10 | fnPTT4w/ABYv27uqlW32NAAvhA== 11 | -----END OPENSSH PRIVATE KEY--- -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-dsa-1024.enc2: -------------------------------------------------------------------------------- 1 | -----BEGIN ENCRYPTED PRIVATE KEY----- 2 | MIIBrTBXBgkqhkiG9w0BBQ0wSjApBgkqhkiG9w0BBQwwHAQIvYL6lfPDJEgCAggA 3 | MAwGCCqGSIb3DQIJBQAwHQYJYIZIAWUDBAEqBBBYIEhHL2MaJ1J1iXuKRO/NBIIB 4 | UHJ6oIuvMOwMBQvro5/7WWr5+RegvCVEUobGR7woIlV7pH9Rvx2LXGW2SElVeeg7 5 | 8uPZ8rU4b1/wSS6fjhC+fGIuFFa58uCXpcM2bRz1iatAw/H1t9k2NWDevMS+uWfj 6 | 7K3F6p+uJNOywnrhdRtGq3QCHyLGDhW8hk+fiR72HkqM1aU7bmxeCVID57JS+PKV 7 | PcwX6TKLwP+xho3coxUm44Ml9N2LIGFJ2GmYDPXlknafdNRAdgeGq81HWi2XIwbx 8 | L0DCiPuFoTmbADZYyasKYWFsgpo9yWAjCyXK39T/MNyDZJ4OxqL+432729aLweL8 9 | hWlP+J3DqOGuF/+iSgsYbWv+zMbIw6cBF6TgVWgBoh1lS2rUogWefKZwqoB6wnAz 10 | JqEtWGnfvQscTFBZlWBiulsxkAzfoXNaqqvrxZs7lKDsp8btxaQwBJlGiWg8pJr7 11 | KA== 12 | -----END ENCRYPTED PRIVATE KEY----- 13 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/common/signature/example-ca.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDC9ueamUQ2HJDZvS9L6fpb4umROUrPrRjb6TaIuH3K8h9uT8+8oJIM4Pqn7mlSMvX0Vi8VUCpMQ2fZnqukFrB5W8jNdGG7a/IEDF/Yg3dON1D7I43GRo/I7Qk9EGSeDayvIeh0g6dqalx7dyIg83GvsuqC+dZlQpLdFML1PciaHur1NHF9zDyLKjb+Qfxi738Y3tmfSFOd37r0r2dWLqRQ0uDk1uY2fF0YYnQonvpW3Sc6pS8lxJXAOPRYs0a3IG0AQKvzXxjg3U4NYKU0rJ8LLpoeEYbgSYwCPg6RWYg618Yu6NU7OjdQ0i3ZfoCh4O/xuW+oz/RoEEkM8bzDr7GuLeluX7u5jUXUYoeBCbgdp21xTIlCezmzYhZYb6X5Vuk481xXCaEvHAJz++Qz8M3K7YWGilgynFFm6UUHCefgGirei10X4x24FpnTxKmLpxgGWlW1Nbc/4Wh65i5VVg/m9k3dLqSlM7M39IAiYhl0dYVTSeiGmTSzwoNxRYqSP+bjAgWK80hbStFu1MB9mmPWBz5f5VnzpGWeM1Xx6Kjg95vvitkTL+8HgPRW6wSPppWaSjqFDRe/DCM9ve18SMnOH8LYeGUkmiC4ihablKKlAC6gQNCj+HV9QxAXHWE1YMpvaw7/15Joc6V5scXoR6raRZuI4RpIobD5wOLfSMGELw== CA key for tests 2 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/util/security/SecurityUtilsTest-DSA-KeyPair: -------------------------------------------------------------------------------- 1 | -----BEGIN DSA PRIVATE KEY----- 2 | MIIBvAIBAAKBgQDIPyMbBuQcZxeYDOyCqqkdK37cWQvp+RpWzvieB/oiG/ykfDQX 3 | oZMRtwqwWTBfejNitbBBmC6G/t5OK+9aFmj7pfJ+a7fZKXfiUquIg9soDsoOindf 4 | 2AwR6MZ3os8uiP2xrC8IQAClnETa15mFShs4a4b2VjddgCQ6tphnY97MywIVAPtr 5 | YyW11RIXsVTf/9KlbhYaNlt5AoGAX9JzbHykC/0xDKOyKU6xDIOVdEZ0ooAl9Psl 6 | BEUuNhlv2XgmQScO6C9l2W7gbbut7zIw4FaZ2/dgXa3D4IyexBVug5XMnrssErZo 7 | NcoF5g0dgEAsb9Hl9gkIK3VHM5kWteeUg1VE700JTtSMisdL8CgIdR+xN8iVH5Ew 8 | CbLWxmECgYEAtv+cdRfNevYFkp55jVqazc8zRLvfb64jzgc5oSJVc64kFs4yx+ab 9 | YpGX9WxNxDlG6g2WiY8voDBB0YnUJsn0kVRjBKX9OceROxrfT4K4dVbQZsdt+SLa 10 | XWL4lGJFrFZL3LZqvySvq6xfhJfakQDDivW4hUOhFPXPHrE5/Ia3T7ACFQCE6flG 11 | nmVCAbzo9YsbdJWBnxMnBA== 12 | -----END DSA PRIVATE KEY----- -------------------------------------------------------------------------------- /sshd-sources/tomcat-apr-5.5.23-sources/org/apache/tomcat/jni/Local.java: -------------------------------------------------------------------------------- 1 | package org.apache.tomcat.jni; 2 | 3 | public class Local 4 | { 5 | public static native long create(String paramString, long paramLong) 6 | throws Exception; 7 | 8 | public static native int bind(long paramLong1, long paramLong2); 9 | 10 | public static native int listen(long paramLong, int paramInt); 11 | 12 | public static native long accept(long paramLong) 13 | throws Exception; 14 | 15 | public static native int connect(long paramLong1, long paramLong2); 16 | } 17 | 18 | 19 | /* Location: C:\Users\lgoldstein\.m2\repository\tomcat\tomcat-apr\5.5.23\tomcat-apr-5.5.23.jar!\org\apache\tomcat\jni\Local.class 20 | * Java compiler version: 2 (46.0) 21 | * JD-Core Version: 0.7.1 22 | */ -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user01_rsa_sha2_256_4096.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDRDOJG5hSThFN4T3IvXIiKgUc6dx62mdMeNuXoDtfJqsyiTl2nE+J2ABUBHqNO7RJe1FEplsim1K+2h7jPeMkjohlltqQH2rZ3D2HOf2j5yhZi97p/vJey5Mj/xFmCa1A9NPyF0mpgkd6E8i2Vn7q0nic0G1Iz6/hn3fQoNZptvxIENKB9qBdKcJVWuGPd9CCb9Ni+mGm27OueHsdBBN+B1BM6T/6tyr2jMWa1C7pe07Kwv3fK7F4p5RRbCt4WKUFS9NEsRRNSLGG6G+V8s7ORyNf1VIGYZWkNBKHXCrM9oZmlEKEAnYq/tfIVgQfe3d90ceRXaCHjqQ3C2cxMBk5S7yI3UipOiJVrTNIZqeL2xK/IoDtSleElRWFVzUYPvOXVTHkycrT3Uduc320liFj+uossznJYG+Q8Rk22Y5i6Ne1YCsBw0VtDukjgL4MD6Z6rKF9+66aqzXPZ3PeC/Cq/ikbBO3a+VEeWaH242vIV45E2gmOjQUcD0tTnJLp8AWyTWiBLtc5RQZZ04BWymtZ88uOqWB/0lzt4zNCfuW/5z36bNimWggamJMtC6Le/AupIFN0RW4hwudUi0k9SEAILXUK9SPeNKdLinZp4pxEhs9Ot6rhJrZU+Yeg4qSetA+w5069qGmEZEDb1x1IXpi6+amwLvM/Pu0D1gS1ZyzI2sw== user01 2 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user01_rsa_sha2_512_4096.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCoOX/QfXzLD2qPwp60EZqSNqlknymhhf1rGX+YuJBXV0JizbKvl/NmHtKbpFw+FWP/gRUH80BI5go/V8/hSIimG6Rf22TKCOqmdVWp1PISuHSfi/gQGHrCsYFcAlFsZoYVU6Gd+jG1rpijPGE3f8w8AtR9ek52JNUGf9JTQnAZDB5oqIurJQy0W2GArfWLWX9ZUuKnd1nh5TQtGh6fxitCYD73pf04qvzAkymE1ZkvTQOpw+bJIH8GSbFP+AhoEbd6hUofl78NZqJogTUNGpESLU0AKTM6eemi080FKjovuREgxVvqtlKIgfGFtCupIz9A/o/PJtNKmQhYSR7YzuivvQPkYwS4nq6WLHmakBFmkvE2JYSLdAV3J4D0jR/9BlK0rI5N/kL90W1/TONwXq2zsWa423TJF2W/RF7Fw4CYqGJO24bDjCYD/uK22x9oQ5/DbGm8VMXK9ocz297pd82/09dkJftoh2DzJ1kvZt4OiLhKGuLzIB4+ioz2fPd1/t4ujvotAxqVCPLp8l2JNMZKnz9PEdezeROgEuk9qLcsVTmCfs+kPHY5HHXUdT6/JgmecqyH4lIL8F+R2DzIYgIzm4lYnQtrq2NxgNC5eAHkJx3yMaEGYIyICQWay9ATBKRhdsIXgMH1M/Ul3lW8350OGTQxiMO8yJ1BVj9cyAlVFQ== user01 2 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user02_rsa_sha2_256_4096.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDIwieiaiBxtyAQyPzE2H7SAp0+VlSLaDFgiNHTxew8+aiGNzoq9daSXFlDPqz/1P0pEO0/ZyXlNW8ikUkR0JYDVhk5GnKtQmXA2k1bZuuHMLihFaBZ2R4lCFUfbwHB1YdWmndebMZW+FlHyELOVDvpTVA+pjONHSYmt2YnEgsbRZ66lioJ6QcZXTVmJhwXcLWc88zJTV2YjBKnlAKNFUmfBpttGZTbko3tbx2JWwvp3zUN8ngRly/IV/2nRRJzcn46s04v07WFKD4DjGAo4eGi3bzsAcL3SbZgygwDMKX232Q7niK6e9dj+NPPgAVn05n5I17GLBDiW1vhVIusKBF0LZR0aLnhabucYyifnwwtw1+6PWY4XrlikGzXpUH8l7JQ0Lb6XD6EtaAIL4rE0qjE/Uyi6UpLlsUyO8JWkf6G7zne/gbQq9H6CX5XvNjAZ1ZnLWJOb9nM3r9voO6uZK8xw30ZfG4jeVIqtTZiEFBT/GM0QR8cmn8M2Z0kRSg6XgaTdyhKJZq+GRJFy+fNSANd2DMkjBlPGhN1TXw+z+UHQ2QxyIZizlv/3UOZCOOejehbiTt5F36MK/7qQAO4tBCox6IFmx7EoJafeVtw8B457PVY/QpasKltfyx4HEYoW8nNzIY1DSECV07361GVZP5VttvSjigwu+kpVZWWiIOMVw== user02 2 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/user02_rsa_sha2_512_4096.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCppMd/6feMxtYILDDyiXe73FNBhRNfDrdku2RkBnECPB0MyTXPYeCDif26LdMrQy/czH1j3FMlGZArt4r+RglS43mDzFeJQ3SCa1hHeJrBowO7t63eS8Y6DUiKVF23cDIZILpA1Ukh0zLzPriTq3b8xTJD+nDh+HbYMDgGFR09yjCvPCs2SmJWCQV3lhnKcDnreS0HP+Vfcwr0YS5hQJtu0+ia/KmwEWF//BvZxAfIwYqPU80QNO9suTC96kYCLMdDliN8pFHwgY8GKBhnynFRQ6q/A/63rmoRiYU+nIJ5ywzkaNZCMO+o/iTqYtAnI/e0M36p+PMoeYnHU4rkEmW60yf50fljZ9U0JqpZxavVcz4PqMFmrUaMbZKUlx088ZVxqKthD9dzI6jSx69dVvX4X5zvGZgmlJUPh19WmzkOFQi30SE5epd5HsXe/qjs18rJJZcxiYSKvivMfQvrXtvzwSgFu2Jz9PRUBgOTCbu+ItqJpBYYb9ceJlePkf20FcTjgGphktcEU7gqlw/arfR4gVQpcvcmSMHKAUzbbM/AxLng3Os2rinz1obSp//MIoNbklpC8J5+a7vETNo5viR1wPglbUIuCozMRgHoT3EXXl+RcrDsYW3ndOm4+kH8QSyr5IjoOGm7J/KhQJi9yqtMzL/Eqi+5LtY0xszdTIEKIQ== user02 2 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/openssh/RSA-KeyPair.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCuxjvYVRScrzIuppjdaSi28wWbZqvKhVU9toeJcyqYpNNA8EWyHB5GT7AQkETu2Hh8irYy5O76EzERDz6hgnjsprX4X3pATUXS67VO55z9ml64SJexMEClZnlJoAypDeAx+V+qCn3qKlXdI6kvIQb0YipUwlg0T+CDAhXtRzjJsLbVnLcjtA58eGjwF5oyNX/vTeuW7ZRazxPCOjtUxYu+cYxSM0zM0aqX1ai4sTMeyGaRRkFF0q+dOOxP2/HWrk7Jxof+AeizbcRs3OfnStuIib3c9xn+i0YGON9sdyxGaPFmGoLMuyzk2v3c8sh483wJ7P3VLtouMLBGLi6ArErQRnA0ecc+LTJHR4jV4x8ku211ies5mJLERVsKxmIN9PJu4FhQNofYS2CbMf03bkhl4k6OuMTrw1mGLBedoige9+mQ9ORYxIYuwtjcqDR1jBRsDL0SuqRL8wQyY3vQ7EjGpMiEVJnRu/cUFtlNmeX8YARaZX4pKNREq4mVL0QFgThm/NiEaLoruDchAlnCtyrLqzy7bivm6oBAKKF+5YVpuridJgHXNzNDtCr5XzB6ZqTqWCgUarh/nyTcVSGQlvBBEUmhBi9owjrd2Wz2rrtuShyPJywY+9YNTsgT11WzfrPsV6+VCOygfACvj7RPU8Wyoef74onSncCWikhXs5tLRw== root@ubuntu-15 2 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/ssh2/ssh-rsa-PublicKey.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCuxjvYVRScrzIuppjdaSi28wWbZqvKhVU9toeJcyqYpNNA8EWyHB5GT7AQkETu2Hh8irYy5O76EzERDz6hgnjsprX4X3pATUXS67VO55z9ml64SJexMEClZnlJoAypDeAx+V+qCn3qKlXdI6kvIQb0YipUwlg0T+CDAhXtRzjJsLbVnLcjtA58eGjwF5oyNX/vTeuW7ZRazxPCOjtUxYu+cYxSM0zM0aqX1ai4sTMeyGaRRkFF0q+dOOxP2/HWrk7Jxof+AeizbcRs3OfnStuIib3c9xn+i0YGON9sdyxGaPFmGoLMuyzk2v3c8sh483wJ7P3VLtouMLBGLi6ArErQRnA0ecc+LTJHR4jV4x8ku211ies5mJLERVsKxmIN9PJu4FhQNofYS2CbMf03bkhl4k6OuMTrw1mGLBedoige9+mQ9ORYxIYuwtjcqDR1jBRsDL0SuqRL8wQyY3vQ7EjGpMiEVJnRu/cUFtlNmeX8YARaZX4pKNREq4mVL0QFgThm/NiEaLoruDchAlnCtyrLqzy7bivm6oBAKKF+5YVpuridJgHXNzNDtCr5XzB6ZqTqWCgUarh/nyTcVSGQlvBBEUmhBi9owjrd2Wz2rrtuShyPJywY+9YNTsgT11WzfrPsV6+VCOygfACvj7RPU8Wyoef74onSncCWikhXs5tLRw== root@ubuntu-15 2 | -------------------------------------------------------------------------------- /sshd-sources/tomcat-apr-5.5.23-sources/org/apache/tomcat/jni/FileInfo.java: -------------------------------------------------------------------------------- 1 | package org.apache.tomcat.jni; 2 | 3 | public class FileInfo 4 | { 5 | public long pool; 6 | public int valid; 7 | public int protection; 8 | public int filetype; 9 | public int user; 10 | public int group; 11 | public int inode; 12 | public int device; 13 | public int nlink; 14 | public long size; 15 | public long csize; 16 | public long atime; 17 | public long mtime; 18 | public long ctime; 19 | public String fname; 20 | public String name; 21 | public long filehand; 22 | } 23 | 24 | 25 | /* Location: C:\Users\lgoldstein\.m2\repository\tomcat\tomcat-apr\5.5.23\tomcat-apr-5.5.23.jar!\org\apache\tomcat\jni\FileInfo.class 26 | * Java compiler version: 2 (46.0) 27 | * JD-Core Version: 0.7.1 28 | */ -------------------------------------------------------------------------------- /sshd-benchmarks/src/main/java/org/apache/sshd/benchmarks/README.md: -------------------------------------------------------------------------------- 1 | # Benchmarks 2 | 3 | This is a generalized benchmark runner for Apache MINA sshd JMH benchmarks. It takes a number of command line options to control which benchmarks are run and how. 4 | 5 | Without arguments, it runs the full "SFTP upload" benchmark suite against an OpenSSH instance running in a local docker container. The docker engine must be running for this to work. There are command-line arguments to run the benchmarks against any external server; the benchmarks all assume that there is an `upload` directory into which they can write. Command-line argument `--help` lists the available options. 6 | 7 | Via the `--run` option, one can control which benchmarks are run. 8 | 9 | Benchmarks are run with a warm-up of 4 iterations, and then 10 timed iterations. 10 | 11 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/certificateoptions/user_rsa_sha2_256_4096.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDRzPU3tAB4NtA8x9cVD2EmtGgneQ43PFsIG8rwD0YVXv3J9M+A8Q6IbkfabnUsmsIw+H8QaHMgrXAqLxxWZuLK+HEUG9XykyU8JnG6AnFFvxqa2JYp1ZT23t5P0a4K0WGvRAmmkOck+avgejOaEnKGkZlrLYozUFaEAcQ3yUSreCIkhYiQqMqg9aX9ZW7OYpvK0h4bLWpFPr2bb1XJfTY/9QY6lkOfnE7pMIjN4x/tIaQCOF76ezhPuSD624ue7RK2RbARSwmnnijTy7IAqUZsm2mKGBUsncIpb5sEl7mpHrHOdgoC0ovpTENk0o6XlLtYhSCSxB7Q4+GAYlKdI5PQDuegn/kxFWlXdEzAuU2Hhpljx5jJCELQ55hoX7pZUjUgFdMRfFgBWs5Ur1kJBCtW7VNvI/8Tt9Keg/Tm2pyFJmOAlh2S1wuMF/NoD8JA9l/n7PHhAeWvhndz+rNHcXWMYSUyj+zSHFzxoQAFTkJ4QMVOSBU8I33ehwRb1dq/kg7PX8Zna+BSJumwEOZL1WcX8jkmfgYcpqHh5rd7T8eKgP+53Cv0bAwKh0arWgoboyRnfOso5deKN5bgwCLJrRgN+QlFbQiH+jYKcSzfRUODGo1u1gD0/XE14AbOMDc96OFsIogtBC9bpqjMUY1m2FUUpIb++7yeYMXYsbEZfGQg2w== user_rsa_sha2_256_4096 2 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/certificateoptions/user_rsa_sha2_512_4096.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDJpNcDBEc/fKhNwCnFAkFyHsy0jATIaDGJqo1PZJKZfK3fZG8QrSREFIjpufzvwGX8uhzcVXTW9qUakhg2rejfZxAzExD2xEH049ovw2IU1vrE7f7SCAiFyA9DSEoiESXcWeHzFbe5+z/nrnWCkL2epa99aeKwnYZBoxz/cAqVp9//bA0OM1Ha6B61bjDWEnycOgZ5xvfXkO61Q0q15jtQtJEF90uK1bMrytwZYgUbS716WBhxb5nD+ZmM/aj/x7EmZWLbBRjXklvKVxzFv32MrTb4CA0sqXi52CHeA1f6DJ7L/Z/lMdByUI4g2GjRjs3YJFYf0+n5LskPixIn1oxmPFUL9EfVhsBiQMiog9X/NUZ3B+Nlsc/UzEUtDWObGJZmeaGzeGft7eMLglHjZArEIfTO8OikGGDCWdESbB06AUk+SuSAEVwruMe5idsGR+9we88rswRxs7ssIRkLp6u9hQQkxr5X20TlhIci3MK4CGHDWT2t8nxPbhkZXwZg7jcTzyLrqojTeiMfaLoUC/fBep1Sj1j7dnnQZvZJVDQ1i+r7Hb2/Gf3Z7veDHz6rjLvTbmmR42CCYJyWPsuwlJeHFkGIYyc/JQp9KNNBVg+mYcbKeKa/8RB/SLtKJjfjmVY0pdQVumWj8xOMYAs0zJJnuGPvx8rLZIGlVRuAsEijHQ== user_rsa_sha2_512_4096 2 | -------------------------------------------------------------------------------- /sshd-sources/tomcat-apr-5.5.23-sources/org/apache/tomcat/jni/Global.java: -------------------------------------------------------------------------------- 1 | package org.apache.tomcat.jni; 2 | 3 | public class Global 4 | { 5 | public static native long create(String paramString, int paramInt, long paramLong) 6 | throws Error; 7 | 8 | public static native long childInit(String paramString, long paramLong) 9 | throws Error; 10 | 11 | public static native int lock(long paramLong); 12 | 13 | public static native int trylock(long paramLong); 14 | 15 | public static native int unlock(long paramLong); 16 | 17 | public static native int destroy(long paramLong); 18 | } 19 | 20 | 21 | /* Location: C:\Users\lgoldstein\.m2\repository\tomcat\tomcat-apr\5.5.23\tomcat-apr-5.5.23.jar!\org\apache\tomcat\jni\Global.class 22 | * Java compiler version: 2 (46.0) 23 | * JD-Core Version: 0.7.1 24 | */ -------------------------------------------------------------------------------- /sshd-sources/tomcat-apr-5.5.23-sources/org/apache/tomcat/jni/Multicast.java: -------------------------------------------------------------------------------- 1 | package org.apache.tomcat.jni; 2 | 3 | public class Multicast 4 | { 5 | public static native int join(long paramLong1, long paramLong2, long paramLong3, long paramLong4); 6 | 7 | public static native int leave(long paramLong1, long paramLong2, long paramLong3, long paramLong4); 8 | 9 | public static native int hops(long paramLong, int paramInt); 10 | 11 | public static native int loopback(long paramLong, boolean paramBoolean); 12 | 13 | public static native int ointerface(long paramLong1, long paramLong2); 14 | } 15 | 16 | 17 | /* Location: C:\Users\lgoldstein\.m2\repository\tomcat\tomcat-apr\5.5.23\tomcat-apr-5.5.23.jar!\org\apache\tomcat\jni\Multicast.class 18 | * Java compiler version: 2 (46.0) 19 | * JD-Core Version: 0.7.1 20 | */ -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/openssh/ECDSA-KeyPair: -------------------------------------------------------------------------------- 1 | -----BEGIN OPENSSH PRIVATE KEY----- 2 | b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAArAAAABNlY2RzYS 3 | 1zaGEyLW5pc3RwNTIxAAAACG5pc3RwNTIxAAAAhQQAGRPv5eCmd3jFTCWrioWVHgQhHn/d 4 | ir8nriiEonZDPP+hEjX1AiYyahfvFWoqKI4lKRzoEmF5Wk6ct+9LM0JFGcEAck7Z3J/NXt 5 | CnHeEvnusHMoANjhKLExBURROOOTGziyHMuGBMBIgRFnf4rBhiTzduexJnaMglyqxIrDpG 6 | hOxwhQAAAAEQxPcsaMT3LGgAAAATZWNkc2Etc2hhMi1uaXN0cDUyMQAAAAhuaXN0cDUyMQ 7 | AAAIUEABkT7+Xgpnd4xUwlq4qFlR4EIR5/3Yq/J64ohKJ2Qzz/oRI19QImMmoX7xVqKiiO 8 | JSkc6BJheVpOnLfvSzNCRRnBAHJO2dyfzV7Qpx3hL57rBzKADY4SixMQVEUTjjkxs4shzL 9 | hgTASIERZ3+KwYYk83bnsSZ2jIJcqsSKw6RoTscIUAAAAAQQ+HCwVtvFlnRydGXZ+xpyKM 10 | KxDp5h7YMg5/dpRFrp3qNonm5/RHoT2Hw9i5GZtrXT2xPiR69wLOzTb4pnIWlENfAAAADn 11 | Jvb3RAdWJ1bnR1LTE1AQIDBAU= 12 | -----END OPENSSH PRIVATE KEY----- -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/ssh2/ssh-dss-PublicKey.ssh2: -------------------------------------------------------------------------------- 1 | ---- BEGIN SSH2 PUBLIC KEY ---- 2 | Comment: "1024-bit DSA, converted by lyor@localhost.localdomain from O" 3 | AAAAB3NzaC1kc3MAAACBAPdrHLUwF2HhMkL5PbYMooN7uxecOuAlGzWMFwOX+o91AOguW+ 4 | 9N3ygeCBeQjMjpPHaV2IncoAMyQODWwFJTnN6civ3CKx8RA4s2p8g46KtH1nyNQsZWUM76 5 | k/CmzQ/1tw6RokIB8AE22Ho5rPc0mN8UPxmaZYNVo3atKLUneaOfAAAAFQDlt7TQxpK2LT 6 | oeivbrlXwaC2OL/QAAAIBr0xTyQEnhnX5Sytau5WvvZ5yQTCM49xEV4DoyhIzvQYZ1hWQv 7 | JDvwwyMoAVlxux5hPeWyNr5zgtDvIStE4dIYWj4iZCdgZjcKizaZLy1EEe1nhiYqwGZLdm 8 | tviUR9q4DWmAOlwatQBq+eIogAH8L1ym+P4ilnfr6selqngkonuQAAAIBA/g1HOO1q7OsM 9 | m+zvdzQM9zMCQsBqf73Si68i4jQKYzEWtKosggRpfdwH8/h2Qq0GwyHQLHAmmhd+f5M77W 10 | PuLTwa4w416oHeU4efX8wHapQBmH+R1TxFSzFaSsbzQkx4/WR7DWwdqhF85Rnz5fD9Evuc 11 | 2aGGYclHeuSBHwShYQ== 12 | ---- END SSH2 PUBLIC KEY ---- 13 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/ssh2/rfc4716-multi-line-comment.ssh2: -------------------------------------------------------------------------------- 1 | ---- BEGIN SSH2 PUBLIC KEY ---- 2 | Comment: This is my public key for use on \ 3 | servers which I don't like. 4 | AAAAB3NzaC1kc3MAAACBAPY8ZOHY2yFSJA6XYC9HRwNHxaehvx5wOJ0rzZdzoSOXxbET 5 | W6ToHv8D1UJ/z+zHo9Fiko5XybZnDIaBDHtblQ+Yp7StxyltHnXF1YLfKD1G4T6JYrdH 6 | YI14Om1eg9e4NnCRleaqoZPF3UGfZia6bXrGTQf3gJq2e7Yisk/gF+1VAAAAFQDb8D5c 7 | vwHWTZDPfX0D2s9Rd7NBvQAAAIEAlN92+Bb7D4KLYk3IwRbXblwXdkPggA4pfdtW9vGf 8 | J0/RHd+NjB4eo1D+0dix6tXwYGN7PKS5R/FXPNwxHPapcj9uL1Jn2AWQ2dsknf+i/FAA 9 | vioUPkmdMc0zuWoSOEsSNhVDtX3WdvVcGcBq9cetzrtOKWOocJmJ80qadxTRHtUAAACB 10 | AN7CY+KKv1gHpRzFwdQm7HK9bb1LAo2KwaoXnadFgeptNBQeSXG1vO+JsvphVMBJc9HS 11 | n24VYtYtsMu74qXviYjziVucWKjjKEb11juqnF0GDlB3VVmxHLmxnAz643WK42Z7dLM5 12 | sY29ouezv4Xz2PuMch5VGPP+CDqzCM4loWgV 13 | ---- END SSH2 PUBLIC KEY ---- 14 | -------------------------------------------------------------------------------- /sshd-core/src/test/resources/org/apache/sshd/client/opensshcerts/user/certificateoptions/user_ecdsa_521: -------------------------------------------------------------------------------- 1 | -----BEGIN OPENSSH PRIVATE KEY----- 2 | b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAArAAAABNlY2RzYS 3 | 1zaGEyLW5pc3RwNTIxAAAACG5pc3RwNTIxAAAAhQQA3nzTCCrE9d3ltPHPbBNm+1V+6weq 4 | JNPxp8MMCnImwvOzGsx7C/47khuawFrrAV7rl0FsV6xOjMFiYK+LFicPp1kAo/E0pMaNIh 5 | DfEFKInDo6tvgqGSA3rn/wtsZS4lcDMZx1Upd19HWQlALZhtJi2qmiadnBjc/0FwunHzyE 6 | p3NbEUUAAAEQYaKs1mGirNYAAAATZWNkc2Etc2hhMi1uaXN0cDUyMQAAAAhuaXN0cDUyMQ 7 | AAAIUEAN580wgqxPXd5bTxz2wTZvtVfusHqiTT8afDDApyJsLzsxrMewv+O5IbmsBa6wFe 8 | 65dBbFesTozBYmCvixYnD6dZAKPxNKTGjSIQ3xBSiJw6Orb4KhkgN65/8LbGUuJXAzGcdV 9 | KXdfR1kJQC2YbSYtqpomnZwY3P9BcLpx88hKdzWxFFAAAAQgD3yOjuUuLDwXbUlb3p7JTP 10 | qINoce+eehPAJkandyBc8xavBKni8M8oRzWqYxGw/gQq60sNgAzGJLbmOtxNuQUC8gAAAA 11 | 51c2VyX2VjZHNhXzUyMQECAwQ= 12 | -----END OPENSSH PRIVATE KEY----- 13 | -------------------------------------------------------------------------------- /sshd-sources/tomcat-apr-5.5.23-sources/org/apache/tomcat/jni/Mmap.java: -------------------------------------------------------------------------------- 1 | package org.apache.tomcat.jni; 2 | 3 | public class Mmap 4 | { 5 | public static final int APR_MMAP_READ = 1; 6 | public static final int APR_MMAP_WRITE = 2; 7 | 8 | public static native long create(long paramLong1, long paramLong2, long paramLong3, int paramInt, long paramLong4) 9 | throws Error; 10 | 11 | public static native long dup(long paramLong1, long paramLong2) 12 | throws Error; 13 | 14 | public static native int delete(long paramLong); 15 | 16 | public static native long offset(long paramLong1, long paramLong2) 17 | throws Error; 18 | } 19 | 20 | 21 | /* Location: C:\Users\lgoldstein\.m2\repository\tomcat\tomcat-apr\5.5.23\tomcat-apr-5.5.23.jar!\org\apache\tomcat\jni\Mmap.class 22 | * Java compiler version: 2 (46.0) 23 | * JD-Core Version: 0.7.1 24 | */ -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-dsa-1024.enc: -------------------------------------------------------------------------------- 1 | -----BEGIN DSA PRIVATE KEY----- 2 | Proc-Type: 4,ENCRYPTED 3 | DEK-Info: AES-128-CBC,FAB7B551559FC2A606514FEDF6AB633B 4 | 5 | r45s6gNq7dp/jZVkvPqD77f4EWWS3qgqYVH1VmuG9odGDewoFekxBa+y03kw/UId 6 | 7N6ZOZ6FHAcOUOte4oVpgrpnLFRyiLji/h9nR7/ogKKZLToEubE2kA7ERnYasttm 7 | obsTtWBqsH4IR38h91jcZysovXMfZjfyaJZqr6ojPgq86dIPHvuhS78WKxE2+FA/ 8 | AJCmWHtGa/uOBnzY1SA46D8cLk2A89K2V6fT18ZG/py61PEWRTkxJ3cQ3xKbIfbH 9 | lkSDwffJKwz3n33PH4iP3vrjzKdDKzu0S0Fr7qTdXEySdUtLqoKqhFLbsSYxM+WU 10 | wMmUniiuWlh5xsp9zLprIO3lEk7i//+fA7QEK47sGYF4iwFfWbP7OYnmtPR1EMGi 11 | ErpQos4szv6DfFJ/+AgjeQNSeYJItRea4Scupk4vEbv/o30yLGyioVzJyYeMaP5E 12 | 8jJl98LTjWfiEQKTP+FjDzFypCSfDF6yzi/e0SzV2DypJx8FXBRtk5ewLcCN+IzF 13 | 0QwWNLmSafgzX6SJ1EIATaBLrym5x5b12wlrDMmOlhvuasRI958zHhj56ek+oFEI 14 | Muiu+EEA24HFD7v4TkbKAw== 15 | -----END DSA PRIVATE KEY----- 16 | -------------------------------------------------------------------------------- /java-checkstyle-license-header.txt: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | -------------------------------------------------------------------------------- /sshd-openpgp/src/test/resources/org/apache/sshd/openpgp/EC-256-gpg2-public.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP PUBLIC KEY BLOCK----- 2 | 3 | mFIEW/UCHBMIKoZIzj0DAQcCAwRwthfsRaS0mRDLNIaSr33Z3BlN/jkRyjcPB6Pb 4 | 7YgIsx6SduOzO6nS5jXLByMQies7RP6yTU/toaw9ZgeHOsxetENMeW9yIEdvbGRz 5 | dGVpbiAoTUlOQSBTU0hEIEVDQyAyNTYgYml0cyBrZXkpIDxsZ29sZHN0ZWluQGFw 6 | YWNoZS5vcmc+iJAEExMIADgWIQR0WNzQXYwc0XfdokuXaUwevKnY5AUCW/UCHAIb 7 | AwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRCXaUwevKnY5NYHAQD20Ssv+Qyc 8 | 6TqGAWYQK8Nn2JlnyZpfZa8GsRaMHFkfGQD5ATVE5hH0YzqCJQlXIFhkRhnb1y7e 9 | gVwk8e2j6exv2I+4VgRb9QIcEggqhkjOPQMBBwIDBAAir4mj7T+LXOLouc0H3E+6 10 | c5meEAzG7jyZt6lV8ROGH6pwiG+lsle/iu3kizvoiOtiXdtr+gAKfoHPkpQ7MNUD 11 | AQgHiHgEGBMIACAWIQR0WNzQXYwc0XfdokuXaUwevKnY5AUCW/UCHAIbDAAKCRCX 12 | aUwevKnY5EOMAP43QNoih5T92eTR3fgFCs2fmzNEYNQmTbZtrAsbvMecMQEAgOPn 13 | dtxNt41SlS+O3x8En65gzaiKMusVbBaCIF+jR8c= 14 | =eZ7T 15 | -----END PGP PUBLIC KEY BLOCK----- 16 | -------------------------------------------------------------------------------- /docs/changes/2.9.1.md: -------------------------------------------------------------------------------- 1 | # Introduced in 2.9.1 2 | 3 | ## Bug fixes 4 | 5 | * [SSHD-1281](https://issues.apache.org/jira/browse/SSHD-1281) ClientSession.auth().verify() is terminated with timeout 6 | * [SSHD-1285](https://issues.apache.org/jira/browse/SSHD-1285) 2.9.0 release broken on Java 8 7 | * [SSHD-1288](https://issues.apache.org/jira/browse/SSHD-1288) SFTP: fix reading files that are being written 8 | * [SSHD-1289](https://issues.apache.org/jira/browse/SSHD-1289) Deadlock during session exit 9 | * [SSHD-1290](https://issues.apache.org/jira/browse/SSHD-1290) Better logging in ChannelAsyncOutputStream 10 | 11 | ## Major code re-factoring 12 | 13 | ## Potential compatibility issues 14 | 15 | ## Minor code helpers 16 | 17 | ## Behavioral changes and enhancements 18 | 19 | * [SSHD-1283](https://issues.apache.org/jira/browse/SSHD-1283) Added configuration property to control whether *ScpShell* is enabled (default=true). 20 | 21 | -------------------------------------------------------------------------------- /assembly/src/main/legal/licenses/jbcrypt.txt: -------------------------------------------------------------------------------- 1 | jBCrypt is subject to the following license: 2 | 3 | /* 4 | * Copyright (c) 2006 Damien Miller 5 | * 6 | * Permission to use, copy, modify, and distribute this software for any 7 | * purpose with or without fee is hereby granted, provided that the above 8 | * copyright notice and this permission notice appear in all copies. 9 | * 10 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 | */ 18 | -------------------------------------------------------------------------------- /sshd-putty/src/test/resources/org/apache/sshd/putty/PuttyKeyUtilsTest-ssh-dss-KeyPair.ppk: -------------------------------------------------------------------------------- 1 | PuTTY-User-Key-File-2: ssh-dss 2 | Encryption: none 3 | Comment: dsa-key-20130709 4 | Public-Lines: 10 5 | AAAAB3NzaC1kc3MAAACBAMg/IxsG5BxnF5gM7IKqqR0rftxZC+n5GlbO+J4H+iIb 6 | /KR8NBehkxG3CrBZMF96M2K1sEGYLob+3k4r71oWaPul8n5rt9kpd+JSq4iD2ygO 7 | yg6Kd1/YDBHoxneizy6I/bGsLwhAAKWcRNrXmYVKGzhrhvZWN12AJDq2mGdj3szL 8 | AAAAFQD7a2MltdUSF7FU3//SpW4WGjZbeQAAAIBf0nNsfKQL/TEMo7IpTrEMg5V0 9 | RnSigCX0+yUERS42GW/ZeCZBJw7oL2XZbuBtu63vMjDgVpnb92BdrcPgjJ7EFW6D 10 | lcyeuywStmg1ygXmDR2AQCxv0eX2CQgrdUczmRa155SDVUTvTQlO1IyKx0vwKAh1 11 | H7E3yJUfkTAJstbGYQAAAIEAtv+cdRfNevYFkp55jVqazc8zRLvfb64jzgc5oSJV 12 | c64kFs4yx+abYpGX9WxNxDlG6g2WiY8voDBB0YnUJsn0kVRjBKX9OceROxrfT4K4 13 | dVbQZsdt+SLaXWL4lGJFrFZL3LZqvySvq6xfhJfakQDDivW4hUOhFPXPHrE5/Ia3 14 | T7A= 15 | Private-Lines: 1 16 | AAAAFQCE6flGnmVCAbzo9YsbdJWBnxMnBA== 17 | Private-MAC: 6ace0a5e5bf23649c1375e91dcd71d1def6c6aa1 18 | -------------------------------------------------------------------------------- /sshd-sources/tomcat-apr-5.5.23-sources/org/apache/tomcat/jni/SSLSocket.java: -------------------------------------------------------------------------------- 1 | package org.apache.tomcat.jni; 2 | 3 | public class SSLSocket 4 | { 5 | public static native int attach(long paramLong1, long paramLong2) 6 | throws Exception; 7 | 8 | public static native int handshake(long paramLong); 9 | 10 | public static native int renegotiate(long paramLong); 11 | 12 | public static native byte[] getInfoB(long paramLong, int paramInt) 13 | throws Exception; 14 | 15 | public static native String getInfoS(long paramLong, int paramInt) 16 | throws Exception; 17 | 18 | public static native int getInfoI(long paramLong, int paramInt) 19 | throws Exception; 20 | } 21 | 22 | 23 | /* Location: C:\Users\lgoldstein\.m2\repository\tomcat\tomcat-apr\5.5.23\tomcat-apr-5.5.23.jar!\org\apache\tomcat\jni\SSLSocket.class 24 | * Java compiler version: 2 (46.0) 25 | * JD-Core Version: 0.7.1 26 | */ -------------------------------------------------------------------------------- /sshd-putty/src/test/resources/org/apache/sshd/putty/super-secret-passphrase-AES-256-CBC-ssh-dss-KeyPair.ppk: -------------------------------------------------------------------------------- 1 | PuTTY-User-Key-File-2: ssh-dss 2 | Encryption: aes256-cbc 3 | Comment: dsa-key-20130909 4 | Public-Lines: 10 5 | AAAAB3NzaC1kc3MAAACBALVdprWfZ7+FiITCILnDkeMZ2ntkV2WjW5RcyiQvJvBO 6 | jCNiVtK87xATEOfBb20YvNZ/CibBjGS1TL5TBqRV5XleucPHMJZ5rXdJ2FH5oZnL 7 | kna3Et+L1/O/GQMmp2vfSFrO3n3+mI1Jozx3FoQO8jr1zIerJ5Mc4LKqsIQB9hvR 8 | AAAAFQD+z1y1/4ll4ax3rri8mkYgGDhqIQAAAIBVU4VJ7V7GoEQJ5WBMbpDEcLIZ 9 | KUgSHsJMQzWnLOi/DcsPjVMDX6FWGPLtrjd7fgInlPMCC/SPAhXdaXMvHZSkvBHV 10 | DfNjpsDgsxBnK1FKqRGtD49rETFGDl92EOsyBhv+9ymdOPX6R0hCqS+ulZheQPXI 11 | iHXdIvQK2Ev5Dy3xNgAAAIA8qhumHZcKss+Puuw+mY5J5Qt7Omv16MuDsYiVqrBq 12 | 1V2C9gutx3Tu+n5QYi0xPlkkP/knMtkUZS+Wt3Dr8zPcEzNBc/Tm2EdYp11jZNx4 13 | 4PM4ing+aCU5oGcg/7RS5CrY5Fn/rvgHqK22XiC8/U55iti44bWKvI6HCejExeZX 14 | iA== 15 | Private-Lines: 1 16 | 64IdcIX48CNGjhcxsVN0vSNpT7S72e3FVdQ3t4ENAvI= 17 | Private-MAC: 8e62b44b5c080965e361936520be4feaa50285b1 18 | -------------------------------------------------------------------------------- /sshd-putty/src/test/resources/org/apache/sshd/putty/PuttyKeyUtilsTest-ssh-rsa-KeyPair.ppk: -------------------------------------------------------------------------------- 1 | PuTTY-User-Key-File-2: ssh-rsa 2 | Encryption: none 3 | Comment: rsa-key-20130709 4 | Public-Lines: 4 5 | AAAAB3NzaC1yc2EAAAABJQAAAIBLSj7+SllQdWjkD8EN4sA/fUv/jhc+ssGmCYx3 6 | uoiPMxjKH3xUPWu4zxJzhdlgFy4gchzjU51fDS4Oel6xGoWbGKGe4ZLQdE/t8N8l 7 | jAfOm/5lGp5tFhHs9UHoSm/h3RsErWNjKPjTGIlID35IcOXVhfhp9fX0RU6y/ZBI 8 | PhM20w== 9 | Private-Lines: 8 10 | AAAAgBx89T2fl2qNSkh0qemUEWQhkmCyTfwMSUW+bIBUawXATpGrDHLmztBOWgIy 11 | pUb0A52S9iyAgLwugCEnYhl/qCxvoARH7ZyTdYAL4KjJDySxVuqeo/ZhLscYcMAz 12 | MOyn8g5cR4dRgEwJ1/pRuK8r4+Z96zJG4NlxlHsUjHuj7t1dAAAAQQCTrj48XKIX 13 | M3dxWLSsSXbUCOpmAOTviuz9LD0H1ik7a6ebr0P6GTl9z7iscBgzdjBIHMFcdvar 14 | ophUJ5iRanCvAAAAQQCCg1VU1H5FHMipRvvw8b/zRqDsx6GTZs03ffhyKrTl1Dcd 15 | 0oKy5/U3kQwdXPOSlVZeyX8nUVE2o7DOh7INsX0dAAAAQHkPjxivrN0SQuVAx+tK 16 | uRJ8vGL7sBOZ9gdTS25T3BVEkhRt37aDcshrodzDCzd515cwhmbLSsOsgyxcTwcX 17 | 7SA= 18 | Private-MAC: 2416438f1a7ebdd33d519f6102d843b5f2c565d4 19 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/ssh2/ssh-rsa-PublicKey.ssh2: -------------------------------------------------------------------------------- 1 | ---- BEGIN SSH2 PUBLIC KEY ---- 2 | Comment: "4096-bit RSA, converted by lyor@localhost.localdomain from O" 3 | AAAAB3NzaC1yc2EAAAADAQABAAACAQCuxjvYVRScrzIuppjdaSi28wWbZqvKhVU9toeJcy 4 | qYpNNA8EWyHB5GT7AQkETu2Hh8irYy5O76EzERDz6hgnjsprX4X3pATUXS67VO55z9ml64 5 | SJexMEClZnlJoAypDeAx+V+qCn3qKlXdI6kvIQb0YipUwlg0T+CDAhXtRzjJsLbVnLcjtA 6 | 58eGjwF5oyNX/vTeuW7ZRazxPCOjtUxYu+cYxSM0zM0aqX1ai4sTMeyGaRRkFF0q+dOOxP 7 | 2/HWrk7Jxof+AeizbcRs3OfnStuIib3c9xn+i0YGON9sdyxGaPFmGoLMuyzk2v3c8sh483 8 | wJ7P3VLtouMLBGLi6ArErQRnA0ecc+LTJHR4jV4x8ku211ies5mJLERVsKxmIN9PJu4FhQ 9 | NofYS2CbMf03bkhl4k6OuMTrw1mGLBedoige9+mQ9ORYxIYuwtjcqDR1jBRsDL0SuqRL8w 10 | QyY3vQ7EjGpMiEVJnRu/cUFtlNmeX8YARaZX4pKNREq4mVL0QFgThm/NiEaLoruDchAlnC 11 | tyrLqzy7bivm6oBAKKF+5YVpuridJgHXNzNDtCr5XzB6ZqTqWCgUarh/nyTcVSGQlvBBEU 12 | mhBi9owjrd2Wz2rrtuShyPJywY+9YNTsgT11WzfrPsV6+VCOygfACvj7RPU8Wyoef74onS 13 | ncCWikhXs5tLRw== 14 | ---- END SSH2 PUBLIC KEY ---- 15 | -------------------------------------------------------------------------------- /security.txt: -------------------------------------------------------------------------------- 1 | # RFC 9116 format specifications for security contacts for Apache MINA sshd 2 | 3 | # The ASF policy page on dealing with security vulnerabilities 4 | Policy: https://www.apache.org/security/ 5 | 6 | # A more detailed description of the whole process 7 | Policy: https://www.apache.org/security/committers.html 8 | 9 | # Where to report sensitive issues 10 | Contact: security@apache.org 11 | 12 | # The canonical locations of this file 13 | Canonical: https://gitbox.apache.org/repos/asf?p=mina-sshd.git;a=blob_plain;f=security.txt;hb=HEAD 14 | Canonical: https://github.com/apache/mina-sshd/blob/master/security.txt 15 | Canonical: https://raw.githubusercontent.com/apache/mina-sshd/master/security.txt 16 | 17 | # OpenPGP keys 18 | Encryption: https://www.apache.org/security/KEYS.txt 19 | 20 | # Please use English 21 | Preferred-Languages: en 22 | 23 | # No expiration. All data is maintained and updated at the apache.org web site. RFC 9116 mandates this field, though. 24 | Expires: 2999-12-31T23:59:59Z 25 | -------------------------------------------------------------------------------- /sshd-mina/src/main/resources/META-INF/services/org.apache.sshd.common.io.IoServiceFactoryFactory: -------------------------------------------------------------------------------- 1 | ## 2 | ## Licensed to the Apache Software Foundation (ASF) under one 3 | ## or more contributor license agreements. See the NOTICE file 4 | ## distributed with this work for additional information 5 | ## regarding copyright ownership. The ASF licenses this file 6 | ## to you under the Apache License, Version 2.0 (the 7 | ## "License"); you may not use this file except in compliance 8 | ## with the License. You may obtain a copy of the License at 9 | ## 10 | ## http://www.apache.org/licenses/LICENSE-2.0 11 | ## 12 | ## Unless required by applicable law or agreed to in writing, 13 | ## software distributed under the License is distributed on an 14 | ## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | ## KIND, either express or implied. See the License for the 16 | ## specific language governing permissions and limitations 17 | ## under the License. 18 | ## 19 | 20 | org.apache.sshd.mina.MinaServiceFactoryFactory 21 | -------------------------------------------------------------------------------- /sshd-putty/src/test/resources/org/apache/sshd/putty/super-secret-passphrase-AES-256-CBC-ssh-rsa-KeyPair.ppk: -------------------------------------------------------------------------------- 1 | PuTTY-User-Key-File-2: ssh-rsa 2 | Encryption: aes256-cbc 3 | Comment: rsa-key-20130909 4 | Public-Lines: 4 5 | AAAAB3NzaC1yc2EAAAABJQAAAIEAhY5eZJrX0a3+rtEZCq0nu2zvAHp16nk93jhi 6 | p7c9tTDlGm9QEAgqzmuilEeUQ4BssxAvhCFEo/7Qbg4M7PwcA5cFkjXE4gj0YDJM 7 | ay7l2mb5aIoS/hACgNz54p/w/UgfQC1Vygt6QtvXXAW8Lh/YCN4Zw4ViROUhoYuy 8 | 3K5SBYs= 9 | Private-Lines: 8 10 | mqcGPnrv9d1tYkJZSGaCy5REslPZ2xh8m7qAbN+bD1m7iQ77pLxlKyzs82rbRaC9 11 | KSnKwsbFl7o92NT+9yYKJ7ehXyWyrUXkn9KcPk7MzNVwMuWVDXwvHodGLCyVCLYq 12 | PNipvg2USHvnCjnnvtMysBRNJiHTMOaf/gSZLyaEuznYo3FEClMPzggY9b2nrxnV 13 | O1ttk1FJatkRflwFjn3A/R/GpowmBnkDyCkVlTvR+uBAg8iIy1Vzj5zIV9zmzfgx 14 | DxPot+Y81y+Xe3ohVh2s1FVvLw+KQbYbCQam5j0V/dTQ+oVWjCJBlibD3aVTGK0M 15 | Jswz8wPwXFo5N0yX/6ZTrshbvTzoO1bg0+HUu581ZSAeqttk9C1RLmWFS8YDm0Hn 16 | GhDXrjuAvKJ3cjeVJsumgVw45NYGARuzV24TlHUtU+eze8Y/0NsPJXoCfVoYjTjb 17 | fjlMh9rYbRdyNHXwYTzwbw== 18 | Private-MAC: f4c50b3da0b73c34e8989411fc48c884c09e20a0 19 | -------------------------------------------------------------------------------- /sshd-netty/src/main/resources/META-INF/services/org.apache.sshd.common.io.IoServiceFactoryFactory: -------------------------------------------------------------------------------- 1 | ## 2 | ## Licensed to the Apache Software Foundation (ASF) under one 3 | ## or more contributor license agreements. See the NOTICE file 4 | ## distributed with this work for additional information 5 | ## regarding copyright ownership. The ASF licenses this file 6 | ## to you under the Apache License, Version 2.0 (the 7 | ## "License"); you may not use this file except in compliance 8 | ## with the License. You may obtain a copy of the License at 9 | ## 10 | ## http://www.apache.org/licenses/LICENSE-2.0 11 | ## 12 | ## Unless required by applicable law or agreed to in writing, 13 | ## software distributed under the License is distributed on an 14 | ## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | ## KIND, either express or implied. See the License for the 16 | ## specific language governing permissions and limitations 17 | ## under the License. 18 | ## 19 | 20 | org.apache.sshd.netty.NettyIoServiceFactoryFactory 21 | -------------------------------------------------------------------------------- /sshd-sftp/src/main/filtered-resources/META-INF/services/java.nio.file.spi.FileSystemProvider: -------------------------------------------------------------------------------- 1 | ## 2 | ## Licensed to the Apache Software Foundation (ASF) under one 3 | ## or more contributor license agreements. See the NOTICE file 4 | ## distributed with this work for additional information 5 | ## regarding copyright ownership. The ASF licenses this file 6 | ## to you under the Apache License, Version 2.0 (the 7 | ## "License"); you may not use this file except in compliance 8 | ## with the License. You may obtain a copy of the License at 9 | ## 10 | ## http://www.apache.org/licenses/LICENSE-2.0 11 | ## 12 | ## Unless required by applicable law or agreed to in writing, 13 | ## software distributed under the License is distributed on an 14 | ## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | ## KIND, either express or implied. See the License for the 16 | ## specific language governing permissions and limitations 17 | ## under the License. 18 | ## 19 | 20 | org.apache.sshd.sftp.client.fs.SftpFileSystemProvider 21 | -------------------------------------------------------------------------------- /sshd-sftp/src/main/filtered-resources/META-INF/services/org.apache.sshd.server.subsystem.SubsystemFactory: -------------------------------------------------------------------------------- 1 | ## 2 | ## Licensed to the Apache Software Foundation (ASF) under one 3 | ## or more contributor license agreements. See the NOTICE file 4 | ## distributed with this work for additional information 5 | ## regarding copyright ownership. The ASF licenses this file 6 | ## to you under the Apache License, Version 2.0 (the 7 | ## "License"); you may not use this file except in compliance 8 | ## with the License. You may obtain a copy of the License at 9 | ## 10 | ## http://www.apache.org/licenses/LICENSE-2.0 11 | ## 12 | ## Unless required by applicable law or agreed to in writing, 13 | ## software distributed under the License is distributed on an 14 | ## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | ## KIND, either express or implied. See the License for the 16 | ## specific language governing permissions and limitations 17 | ## under the License. 18 | ## 19 | 20 | org.apache.sshd.sftp.server.SftpSubsystemFactory -------------------------------------------------------------------------------- /sshd-common/src/main/filtered-resources/META-INF/services/java.nio.file.spi.FileSystemProvider: -------------------------------------------------------------------------------- 1 | ## 2 | ## Licensed to the Apache Software Foundation (ASF) under one 3 | ## or more contributor license agreements. See the NOTICE file 4 | ## distributed with this work for additional information 5 | ## regarding copyright ownership. The ASF licenses this file 6 | ## to you under the Apache License, Version 2.0 (the 7 | ## "License"); you may not use this file except in compliance 8 | ## with the License. You may obtain a copy of the License at 9 | ## 10 | ## http://www.apache.org/licenses/LICENSE-2.0 11 | ## 12 | ## Unless required by applicable law or agreed to in writing, 13 | ## software distributed under the License is distributed on an 14 | ## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | ## KIND, either express or implied. See the License for the 16 | ## specific language governing permissions and limitations 17 | ## under the License. 18 | ## 19 | 20 | org.apache.sshd.common.file.root.RootedFileSystemProvider 21 | -------------------------------------------------------------------------------- /sshd-sources/tomcat-apr-5.5.23-sources/org/apache/tomcat/jni/Shm.java: -------------------------------------------------------------------------------- 1 | package org.apache.tomcat.jni; 2 | 3 | import java.nio.ByteBuffer; 4 | 5 | public class Shm 6 | { 7 | public static native long create(long paramLong1, String paramString, long paramLong2) 8 | throws Error; 9 | 10 | public static native int remove(String paramString, long paramLong); 11 | 12 | public static native int destroy(long paramLong); 13 | 14 | public static native long attach(String paramString, long paramLong) 15 | throws Error; 16 | 17 | public static native int detach(long paramLong); 18 | 19 | public static native long baseaddr(long paramLong); 20 | 21 | public static native long size(long paramLong); 22 | 23 | public static native ByteBuffer buffer(long paramLong); 24 | } 25 | 26 | 27 | /* Location: C:\Users\lgoldstein\.m2\repository\tomcat\tomcat-apr\5.5.23\tomcat-apr-5.5.23.jar!\org\apache\tomcat\jni\Shm.class 28 | * Java compiler version: 2 (46.0) 29 | * JD-Core Version: 0.7.1 30 | */ -------------------------------------------------------------------------------- /sshd-openpgp/src/test/resources/org/apache/sshd/openpgp/RSA-2048-v1p6p1-public.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP PUBLIC KEY BLOCK----- 2 | Version: BCPG C# v1.6.1.0 3 | 4 | mQENBFuTTP0BCACGwHfOtKlKSNPophndVpK+M3OhxjFT/rKTBAr3zzzVAn1ofdbS 5 | oi0AysA95P++5mffGryhiNjLzLG8zehtU4/eij0NN1OFOtxILc0wViRqe6Ldikit 6 | fV6crknwA3q09vTWuzqQDus+lC1qxl36CA6FbnYWNQNt0iLL2rE3doOHAX4rSaIf 7 | JI19LKlJMsCQKAJhNq65ORg2hnOaycwtybmVhVXSGAw8La1TgbOp2M+loWhNDoFT 8 | H0tpUPNuNkadv3BqGMb90tG/uQLE9GrxJGOFsgRxertGNXesY1+JofCVJQuxXp1A 9 | yLTo6tr28oSLFOcfsDMuDAejnokP0QnEinGRABEBAAG0FWxnb2xkc3RlaW5AYXBh 10 | Y2hlLm9yZ4kBHAQQAQIABgUCW5NM/QAKCRDB8+7vuObR4GWUB/9QaGm5xLSLtxNo 11 | GTStJtenkNNM/urRsu7iZHvj1ELrOUffDS7da/uIqXtWh6xtR8vDG9ByCm+Wp47N 12 | 6amCbmpt3oYKTKQhBxZ9w7Ic3EaHSmcAL+riLnZts313PCm7NZASNO/3H6I4R8TH 13 | NUtP0UdwymK0O7vhDlhj094faKS0XeSyckZs5NQY63rcGK9+Dj3TGlO2jZo/JnYO 14 | Bc3DxICtC2/HoXfkGhZPw0DjOfMYDhWRxDdfP4ftpHHiOQTLSyEq6enQhNOlwg0K 15 | PjQmvH62iWoRSOCcKqM0PBlftzjssFRqICsAIpE0urzRaGawzzG348GoXjP3bEVS 16 | wznsBe9q 17 | =wQIr 18 | -----END PGP PUBLIC KEY BLOCK----- 19 | -------------------------------------------------------------------------------- /sshd-sources/tomcat-apr-5.5.23-sources/org/apache/tomcat/jni/Directory.java: -------------------------------------------------------------------------------- 1 | package org.apache.tomcat.jni; 2 | 3 | public class Directory 4 | { 5 | public static native int make(String paramString, int paramInt, long paramLong); 6 | 7 | public static native int makeRecursive(String paramString, int paramInt, long paramLong); 8 | 9 | public static native int remove(String paramString, long paramLong); 10 | 11 | public static native String tempGet(long paramLong); 12 | 13 | public static native long open(String paramString, long paramLong) 14 | throws Error; 15 | 16 | public static native int close(long paramLong); 17 | 18 | public static native int rewind(long paramLong); 19 | 20 | public static native int read(FileInfo paramFileInfo, int paramInt, long paramLong); 21 | } 22 | 23 | 24 | /* Location: C:\Users\lgoldstein\.m2\repository\tomcat\tomcat-apr\5.5.23\tomcat-apr-5.5.23.jar!\org\apache\tomcat\jni\Directory.class 25 | * Java compiler version: 2 (46.0) 26 | * JD-Core Version: 0.7.1 27 | */ -------------------------------------------------------------------------------- /sshd-sources/tomcat-apr-5.5.23-sources/org/apache/tomcat/jni/Stdlib.java: -------------------------------------------------------------------------------- 1 | package org.apache.tomcat.jni; 2 | 3 | public class Stdlib 4 | { 5 | public static native boolean memread(byte[] paramArrayOfByte, long paramLong, int paramInt); 6 | 7 | public static native boolean memwrite(long paramLong, byte[] paramArrayOfByte, int paramInt); 8 | 9 | public static native boolean memset(long paramLong, int paramInt1, int paramInt2); 10 | 11 | public static native long malloc(int paramInt); 12 | 13 | public static native long realloc(long paramLong, int paramInt); 14 | 15 | public static native long calloc(long paramLong, int paramInt); 16 | 17 | public static native void free(long paramLong); 18 | 19 | public static native int getpid(); 20 | 21 | public static native int getppid(); 22 | } 23 | 24 | 25 | /* Location: C:\Users\lgoldstein\.m2\repository\tomcat\tomcat-apr\5.5.23\tomcat-apr-5.5.23.jar!\org\apache\tomcat\jni\Stdlib.class 26 | * Java compiler version: 2 (46.0) 27 | * JD-Core Version: 0.7.1 28 | */ -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-rsa-1024.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBALpizZejDUx5l83q 3 | I9Kg75KhYvj5mRVBdTRS8aN/bjiDNOn+yXeRVIB5Vw/r+V6N+1UzTcD+t4sC1b61 4 | mFgOqn5d9adDWw//zROovmCujqvJCDWTZPpuj/05u2BzlDzrkgTXQ/k4Owu9SjQQ 5 | hcrbkaHtvc1/Cfi1DfEv+n7FxABRAgMBAAECgYB9t9ku99cnhziittSU5OLTh7IH 6 | d+wOz0ksEupUOsbwrWeKkcX4tXlG8xGLdsKMSb6GWIWQsP7CcBYWfcyVUMckL4HP 7 | 0jx+6hx7Y3uFtM1/MkucM0D+UAB6cQXHRr2xoRqpiQWBcOAL7dT7IBRMaB4iOGyI 8 | sDnsrucoX2hQU6kXQQJBAO8M4+XZgH2t/4HHA3Upmi5j0L7JmWusnq5Lhf8Va8mO 9 | fLIO0AuKuUtvhWlne3cyUZbaSBOE13DTwNn57LcGjikCQQDHmfpOXDrJCcOjKjQ5 10 | 9g6oVWwU9SgZ51J3lVr83GaMCBdx0zMz5V7eGRsXudAHk6iVHdrznZBEdzWHAlmX 11 | 8VXpAkEA1TqwRiQ+wtxj3wUABpA3YU3Ts3rsCOmPGXVwbtpSrRUWEVW5KbJyGeG+ 12 | JQkTTn1p3Z+TTyXdblzT1xthlNiaEQJABHlaF/mPQ8RZQ0YF56qxR2qqwomAPZxm 13 | x9FsObDDB66CwAVo52fjyXysk8qRdCoGJFmH99/3ROGbLIyL75D0SQJBAI/EHfWS 14 | n3+A/S0R+rQ9GIKXa1Y5wEgVPYKk+YPLfxdOUEj5ZLI5jrE2mHn7ILFnyZpgci6l 15 | wxLeAa68VX4lp7g= 16 | -----END PRIVATE KEY----- 17 | -------------------------------------------------------------------------------- /sshd-common/src/main/filtered-resources/org/apache/sshd/sshd-version.properties: -------------------------------------------------------------------------------- 1 | ## 2 | ## Licensed to the Apache Software Foundation (ASF) under one 3 | ## or more contributor license agreements. See the NOTICE file 4 | ## distributed with this work for additional information 5 | ## regarding copyright ownership. The ASF licenses this file 6 | ## to you under the Apache License, Version 2.0 (the 7 | ## "License"); you may not use this file except in compliance 8 | ## with the License. You may obtain a copy of the License at 9 | ## 10 | ## http://www.apache.org/licenses/LICENSE-2.0 11 | ## 12 | ## Unless required by applicable law or agreed to in writing, 13 | ## software distributed under the License is distributed on an 14 | ## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | ## KIND, either express or implied. See the License for the 16 | ## specific language governing permissions and limitations 17 | ## under the License. 18 | ## 19 | 20 | groupId=${pom.groupId} 21 | artifactId=${pom.artifactId} 22 | version=${pom.version} 23 | sshd-version=apache-sshd-${pom.version} 24 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/mac/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | /** 21 | * Mac implementations. 22 | */ 23 | package org.apache.sshd.common.mac; 24 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/cipher/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | /** 21 | * Cipher implementations. 22 | */ 23 | package org.apache.sshd.common.cipher; 24 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/digest/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | /** 21 | * Digest implementations. 22 | */ 23 | package org.apache.sshd.common.digest; 24 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/random/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | /** 21 | * Random implementations. 22 | */ 23 | package org.apache.sshd.common.random; 24 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/signature/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | /** 21 | * Signature implementations. 22 | */ 23 | package org.apache.sshd.common.signature; 24 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-rsa-1024.enc: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | Proc-Type: 4,ENCRYPTED 3 | DEK-Info: AES-128-CBC,CD0E56163A8AFC63AD1E3134DD6B1B0A 4 | 5 | B796uTCkW4URyJGVfvGqU+naDEd4mIyrsg4VpA7I7o9N3aC1bDhv8GyursySwVRV 6 | T+u7XnEh9FWwk5Qy91VCwEf5MUwIh3t1w9mmNsRkH/1uvKluuiyY2B89PPPXObX/ 7 | IoX8lGgNz9szmbUbJmAO/eWkBD7w9uNEHyiHDaWsUi3ByR+XXCWM6QRBDp8/DQhH 8 | VjpL03s1nV7/CY9NtNpdqBVx8rlHzL03k67fJ4BuOirHIjvdX80u43FxET4/AORM 9 | xZ3j4kqe5eaiOWMd/vWGIiaCgPBjlRIOgoMzm/xQWiHQbfMxjQaQrM3tPQcQN1nb 10 | +rdpnKG46wolCnMglkTd9zRS3YGAYtXyHFSUt9A5rTfLPxtLYfN32Nvowmcxif4i 11 | /MjmxKqXlVKiQTZsligb8Hz9qLTAAHbGKFuraysSs6fla2N/VztyUkxI7Cb56qfM 12 | T29fPNBUWKbLJZEJbfAnuCgkqv9IgaWnC3plRpbay7wXVZAQjqzMwcyPc5J/d5AS 13 | +0dfPHAi2kEGTZGLT3q042n7dsSuanHg2usTpzpY4HsTMjQeSdf6GzRzaSdZGZm+ 14 | qUWB8CwXc5i80Kr1nbkaCX+8ng2tRWv/znWb/0aLJnzCxCi5pelTHi4kBwoVkqmq 15 | Ei3M5XBUPuHXzbr2ltgePDmBPpUq1C2M3oaprufUC4oFt9nZQclIpWGytbeP+hhd 16 | TexIczAwcQW38js8PXRSQtf8zdV2pL038NojN/1wrA/ytT7A1CSs6NysrhrkNRKx 17 | 40RvXf6nGlka9J/+gEcWu/WnKiFCrqWsRzQ2XqDjs6PMB93A+oJl49rvri8rr2q8 18 | -----END RSA PRIVATE KEY----- 19 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/compression/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | /** 21 | * Compression 22 | * implementations. 23 | */ 24 | package org.apache.sshd.common.compression; 25 | -------------------------------------------------------------------------------- /sshd-openpgp/src/test/resources/org/apache/sshd/openpgp/super-secret-passphrase-EC-256-gpg2-private.gpg: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP PRIVATE KEY BLOCK----- 2 | 3 | lKUEW/UCHBMIKoZIzj0DAQcCAwRwthfsRaS0mRDLNIaSr33Z3BlN/jkRyjcPB6Pb 4 | 7YgIsx6SduOzO6nS5jXLByMQies7RP6yTU/toaw9ZgeHOsxe/gcDAtKiQ15aX4xK 5 | 7RKctzKLT0+GvpeMwocKxJY4cKPLdVUafeG/oNTRUZxhpCZxhNQF72RRYWVJUSWa 6 | FYc7PAlq9bpdjaEilzvKrbkOUSGghga0Q0x5b3IgR29sZHN0ZWluIChNSU5BIFNT 7 | SEQgRUNDIDI1NiBiaXRzIGtleSkgPGxnb2xkc3RlaW5AYXBhY2hlLm9yZz6IkAQT 8 | EwgAOBYhBHRY3NBdjBzRd92iS5dpTB68qdjkBQJb9QIcAhsDBQsJCAcCBhUKCQgL 9 | AgQWAgMBAh4BAheAAAoJEJdpTB68qdjk1gcBAPbRKy/5DJzpOoYBZhArw2fYmWfJ 10 | ml9lrwaxFowcWR8ZAPkBNUTmEfRjOoIlCVcgWGRGGdvXLt6BXCTx7aPp7G/Yj5yp 11 | BFv1AhwSCCqGSM49AwEHAgMEACKviaPtP4tc4ui5zQfcT7pzmZ4QDMbuPJm3qVXx 12 | E4YfqnCIb6WyV7+K7eSLO+iI62Jd22v6AAp+gc+SlDsw1QMBCAf+BwMCXAs4w3kX 13 | lmTtMIuR/VfNPMZQnc12Lea0iLwQSZidPI/TMZ/vQecK1UUN2PD1WsAecAAg3g5K 14 | NcY5r4dAvmpeadRq32xuHqQYgted7ZxImIh4BBgTCAAgFiEEdFjc0F2MHNF33aJL 15 | l2lMHryp2OQFAlv1AhwCGwwACgkQl2lMHryp2ORDjAD+N0DaIoeU/dnk0d34BQrN 16 | n5szRGDUJk22bawLG7zHnDEBAIDj53bcTbeNUpUvjt8fBJ+uYM2oijLrFWwWgiBf 17 | o0fH 18 | =76uM 19 | -----END PGP PRIVATE KEY BLOCK----- 20 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/AlgorithmNameProvider.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.common; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | public interface AlgorithmNameProvider { 26 | String getAlgorithm(); 27 | } 28 | -------------------------------------------------------------------------------- /sshd-core/src/main/filtered-resources/org/apache/sshd/common/kex/group1.prime: -------------------------------------------------------------------------------- 1 | ## 2 | ## Licensed to the Apache Software Foundation (ASF) under one 3 | ## or more contributor license agreements. See the NOTICE file 4 | ## distributed with this work for additional information 5 | ## regarding copyright ownership. The ASF licenses this file 6 | ## to you under the Apache License, Version 2.0 (the 7 | ## "License"); you may not use this file except in compliance 8 | ## with the License. You may obtain a copy of the License at 9 | ## 10 | ## http://www.apache.org/licenses/LICENSE-2.0 11 | ## 12 | ## Unless required by applicable law or agreed to in writing, 13 | ## software distributed under the License is distributed on an 14 | ## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | ## KIND, either express or implied. See the License for the 16 | ## specific language governing permissions and limitations 17 | ## under the License. 18 | ## 19 | FFFFFFFF FFFFFFFF C90FDAA2 2168C234 C4C6628B 80DC1CD1 20 | 29024E08 8A67CC74 020BBEA6 3B139B22 514A0879 8E3404DD 21 | EF9519B3 CD3A431B 302B0A6D F25F1437 4FE1356D 6D51C245 22 | E485B576 625E7EC6 F44C42E9 A63A3620 FFFFFFFF FFFFFFFF 23 | -------------------------------------------------------------------------------- /sshd-netty/src/test/java/org/apache/sshd/netty/NettyTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.sshd.netty; 20 | 21 | import org.junit.jupiter.api.Test; 22 | 23 | // 24 | // Dumb test, as junit 5 fails if there's no tests 25 | // 26 | public class NettyTest { 27 | 28 | @Test 29 | void dummyTest() { 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /sshd-core/src/main/java/org/apache/sshd/agent/SshAgentServer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.sshd.agent; 20 | 21 | import java.nio.channels.Channel; 22 | 23 | public interface SshAgentServer extends Channel { 24 | 25 | /** 26 | * @return Agent server identifier 27 | */ 28 | String getId(); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /assembly/src/main/legal/licenses/jpgpj.txt: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2016 Justin Ludwig 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/auth/PasswordHolder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.common.auth; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | @FunctionalInterface 26 | public interface PasswordHolder { 27 | String getPassword(); 28 | } 29 | -------------------------------------------------------------------------------- /sshd-sftp/src/main/java/org/apache/sshd/sftp/client/SftpClientHolder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.sftp.client; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | @FunctionalInterface 26 | public interface SftpClientHolder { 27 | SftpClient getClient(); 28 | } 29 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/auth/MutablePassword.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.common.auth; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | public interface MutablePassword extends PasswordHolder { 26 | void setPassword(String password); 27 | } 28 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.yml: -------------------------------------------------------------------------------- 1 | name: Feature Request 2 | description: Suggest an enhancement or a new feature. 3 | body: 4 | - type: markdown 5 | attributes: 6 | value: | 7 | Thank you for helping making Apache MINA SSHD better! 8 | - type: textarea 9 | id: description 10 | attributes: 11 | label: Description 12 | description: What feature or enhancement you would like to have in Apache MINA SSHD? 13 | validations: 14 | required: true 15 | - type: textarea 16 | id: motivation 17 | attributes: 18 | label: Motivation 19 | description: Explain the use case for the new feature. 20 | placeholder: Explain why it would be good to have the new feature or enhancement. What problem would it solve? 21 | validations: 22 | required: true 23 | - type: textarea 24 | id: alternatives 25 | attributes: 26 | label: Alternatives considered 27 | description: What alternatives did you consider? What work-around, if any, are you using currently? 28 | - type: textarea 29 | id: other 30 | attributes: 31 | label: Additional context 32 | description: Any other information that may be relevant. 33 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/auth/MutableUserHolder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.common.auth; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | public interface MutableUserHolder extends UsernameHolder { 26 | void setUsername(String username); 27 | } 28 | -------------------------------------------------------------------------------- /assembly/src/main/legal/licenses/bouncycastle.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2000 - 2017 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of 4 | this software and associated documentation files (the "Software"), to deal in the 5 | Software without restriction, including without limitation the rights to use, copy, 6 | modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, 7 | and to permit persons to whom the Software is furnished to do so, subject to the 8 | following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 14 | INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 15 | PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 16 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 17 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 18 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 19 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/auth/BasicCredentialsProvider.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.common.auth; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | public interface BasicCredentialsProvider extends UsernameHolder, PasswordHolder { 26 | // Nothing extra 27 | } 28 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/session/SessionContextHolder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.common.session; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | @FunctionalInterface 26 | public interface SessionContextHolder { 27 | SessionContext getSessionContext(); 28 | } 29 | -------------------------------------------------------------------------------- /sshd-common/src/test/resources/org/apache/sshd/common/config/keys/loader/pem/pkcs8-rsa-1024.enc2: -------------------------------------------------------------------------------- 1 | -----BEGIN ENCRYPTED PRIVATE KEY----- 2 | MIIC3TBXBgkqhkiG9w0BBQ0wSjApBgkqhkiG9w0BBQwwHAQIHMPRYwbgHa8CAggA 3 | MAwGCCqGSIb3DQIJBQAwHQYJYIZIAWUDBAEqBBAHTf9bbvq3PYXO7bmJpJS5BIIC 4 | gA5qONUvodOWMKqFHJ8jtno2K4Ri2BzNvffYM+J/AkTslvtPTbhyEXmmQNzsyu2p 5 | izXVVPyYx2DVF37vf8c6GLX0gUfPJDlNkz2nljmIh767Z86WaXh9je/4LVDCYl2q 6 | zyhBtMqhfPhKcmb0CGDtAOwg4lPvn74tUofQvFTPWpDZtU1v33XouhQUH59MY06l 7 | Fy3NQ2jYI+d6OX4FzL6DBLLPaRqI/Yp5tRHxRmUuXhd4Ay3JmMbDFqyn7Zyls6yB 8 | N60UZ/gB5z0yG448ihrAvE1SRiEJoyZN0ACFxWErsvS2O9+4SaJEdSutaoj+mLX/ 9 | dd2BlOwkRpHYta2QfSeq4G6mgkFT9kkPays7B5hpLECIyr1+x5C8UHnzxfYFp69n 10 | bva82xbEGHFVnlLnrm8/EVc6X59e29V8mUkswIfCK+04MEGrZWPJpjUewZaRRgVQ 11 | 7kM6Cddm1zrldtaNOuNMI+sHCUra0s1OA8bt39IL5VvRZ5p+pEvWguuzuOT/8OZD 12 | Lyw22FiwQkYE3MVgwlY0qaknVcXmD/6Jgbc7oaWpRyrxAoBS90KcT20CxtwUUgGy 13 | q68Z9QkR78MN7rno+2fegF2hLJ5ljGPsSOW0vRImuWzoup56YRvsLf0xUXfJOFNT 14 | BtmzDHqb7Upzfg4GBJoA9v0UcqZInyFMWj/mLC/EHkalEeS+zHWIE2BeyIaQJim1 15 | 0A5EtwUfK32m7dxePHvS97q7p/7n0iTwVs54njrXTO9KfDprGHNpsqVkCEwfBDX4 16 | FOYsqmF72slYeeodeUl8aLgxBQkneKnX0iNeCJ7ypSp3L9L+9ShFqftjs/YSWeCI 17 | WnmxrkRidiNsI7SYxgsOHs4= 18 | -----END ENCRYPTED PRIVATE KEY----- 19 | -------------------------------------------------------------------------------- /sshd-git/src/main/java/org/apache/sshd/git/GitLocationResolverCarrier.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.git; 21 | 22 | /** 23 | * TODO Add javadoc 24 | * 25 | * @author Apache MINA SSHD Project 26 | */ 27 | public interface GitLocationResolverCarrier { 28 | GitLocationResolver getGitLocationResolver(); 29 | } 30 | -------------------------------------------------------------------------------- /sshd-core/src/main/java/org/apache/sshd/server/channel/ServerChannelSessionHolder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.server.channel; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | @FunctionalInterface 26 | public interface ServerChannelSessionHolder { 27 | ChannelSession getServerChannelSession(); 28 | } 29 | -------------------------------------------------------------------------------- /assembly/src/main/legal/licenses/slf4j.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2004-2017 QOS.ch 2 | All rights reserved. 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining 5 | a copy of this software and associated documentation files (the 6 | "Software"), to deal in the Software without restriction, including 7 | without limitation the rights to use, copy, modify, merge, publish, 8 | distribute, sublicense, and/or sell copies of the Software, and to 9 | permit persons to whom the Software is furnished to do so, subject to 10 | the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/auth/MutableBasicCredentials.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.common.auth; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | public interface MutableBasicCredentials extends BasicCredentialsProvider, MutableUserHolder, MutablePassword { 26 | // Nothing extra 27 | } 28 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/keyprovider/KeySizeIndicator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.common.keyprovider; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | public interface KeySizeIndicator { 26 | /** 27 | * @return The number of bits used in the key 28 | */ 29 | int getKeySize(); 30 | } 31 | -------------------------------------------------------------------------------- /sshd-core/src/main/filtered-resources/org/apache/sshd/common/kex/group2.prime: -------------------------------------------------------------------------------- 1 | ## 2 | ## Licensed to the Apache Software Foundation (ASF) under one 3 | ## or more contributor license agreements. See the NOTICE file 4 | ## distributed with this work for additional information 5 | ## regarding copyright ownership. The ASF licenses this file 6 | ## to you under the Apache License, Version 2.0 (the 7 | ## "License"); you may not use this file except in compliance 8 | ## with the License. You may obtain a copy of the License at 9 | ## 10 | ## http://www.apache.org/licenses/LICENSE-2.0 11 | ## 12 | ## Unless required by applicable law or agreed to in writing, 13 | ## software distributed under the License is distributed on an 14 | ## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | ## KIND, either express or implied. See the License for the 16 | ## specific language governing permissions and limitations 17 | ## under the License. 18 | ## 19 | FFFFFFFF FFFFFFFF C90FDAA2 2168C234 C4C6628B 80DC1CD1 20 | 29024E08 8A67CC74 020BBEA6 3B139B22 514A0879 8E3404DD 21 | EF9519B3 CD3A431B 302B0A6D F25F1437 4FE1356D 6D51C245 22 | E485B576 625E7EC6 F44C42E9 A637ED6B 0BFF5CB6 F406B7ED 23 | EE386BFB 5A899FA5 AE9F2411 7C4B1FE6 49286651 ECE65381 24 | FFFFFFFF FFFFFFFF 25 | -------------------------------------------------------------------------------- /sshd-findbugs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /sshd-sftp/src/main/java/org/apache/sshd/sftp/server/SftpFileSystemAccessorManager.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.sftp.server; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | public interface SftpFileSystemAccessorManager extends SftpFileSystemAccessorProvider { 26 | void setFileSystemAccessor(SftpFileSystemAccessor accessor); 27 | } 28 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/io/IoHandlerFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.common.io; 21 | 22 | import org.apache.sshd.common.Factory; 23 | 24 | /** 25 | * @author Apache MINA SSHD Project 26 | */ 27 | // CHECKSTYLE:OFF 28 | public interface IoHandlerFactory extends Factory { 29 | // nothing extra 30 | } 31 | //CHECKSTYLE:ON 32 | -------------------------------------------------------------------------------- /sshd-core/src/main/java/org/apache/sshd/common/channel/ChannelHolder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.common.channel; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | @FunctionalInterface 26 | public interface ChannelHolder { 27 | /** 28 | * @return The associated {@link Channel} instance 29 | */ 30 | Channel getChannel(); 31 | } 32 | -------------------------------------------------------------------------------- /sshd-core/src/main/java/org/apache/sshd/common/channel/ChannelIdentifier.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.common.channel; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | @FunctionalInterface 26 | public interface ChannelIdentifier { 27 | /** 28 | * @return Local channel UINT32 identifier 29 | */ 30 | long getChannelId(); 31 | } 32 | -------------------------------------------------------------------------------- /sshd-openpgp/src/test/resources/org/apache/sshd/openpgp/EC-521-gpg2-public.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP PUBLIC KEY BLOCK----- 2 | 3 | mJMEW/T7qBMFK4EEACMEIwQBJlVreO43JyBB4xrzGqOrWtQ2PeZSFYG8cCRNhA6V 4 | gWy0iyTaeelWbx1v8JLLFFR5FEJauyaPFVcr5Yt6K8/KllMAwYkXA1Fgfomly3CK 5 | cw0be5ba2l6LZf012OMfL95W7N2n8pGTQVouHCXOfttgceVhd0t9vc3KJ/ndwMqq 6 | QzdNZZm0Q0x5b3IgR29sZHN0ZWluIChNSU5BIFNTSEQgRUNDIDUyMSBiaXRzIGtl 7 | eSkgPGxnb2xkc3RlaW5AYXBhY2hlLm9yZz6I0gQTEwoAOBYhBHO0L8Vu8dyBYR41 8 | TWC6tW9HfvBjBQJb9PuoAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEGC6 9 | tW9HfvBjxLcCB1uHVLoj/YglRxm0avQ4w+7+/i5zCyrWD+9QwIk5hUtdVrLRnqxJ 10 | BH+FdPpiWLpiisqf0tWv3RQjXgew0XB0b/eRAgjsbPiBRZFsnDQz0vpHJFj/l471 11 | zrNAwNsXZq1Q0Km1tVTP75CN+GUxR45hQ9SXfzPheK+P5/pQyjE3XfPuZlnFfbiX 12 | BFv0+6gSBSuBBAAjBCMEAFiFexuRMnSfngDTPWTxWSh699tvXoOqfRTWCy40hsBP 13 | LBqmpOeYBPoQ93cYCEFnyMnHI/G+g0umQSxZvfZBWKYsALEAdOFmI6alDfFNpLa+ 14 | FS0+XFVhwRz/gehZG7XZRwBX8FSzXaahfcL6ivz6zRXkvh2jbAPnZNohWxx9UgfN 15 | YT+3AwEKCYi8BBgTCgAgFiEEc7QvxW7x3IFhHjVNYLq1b0d+8GMFAlv0+6gCGwwA 16 | CgkQYLq1b0d+8GPpZgIJAR9cvxAMZV0GjBkFFy8vGKF6HINVV6kx3TJLGwrdIOaE 17 | CTIyERWhMHoV8s37RhWwgsnmxt0ExhXDnjgtXnQAYwipAgkB7q4vpOp6y+f78PY6 18 | 26j0O57Qk3D3HMk2RDwb301O2XbvXnac6s5/M7cUmsF3axktP0KUK0qSdu0u3BqL 19 | hWes7XE= 20 | =jpkH 21 | -----END PGP PUBLIC KEY BLOCK----- 22 | -------------------------------------------------------------------------------- /sshd-sftp/src/main/java/org/apache/sshd/sftp/server/SftpSubsystemProxy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.sftp.server; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | public interface SftpSubsystemProxy 26 | extends SftpSubsystemEnvironment, 27 | SftpEventListenerManager, SftpErrorStatusDataHandlerProvider { 28 | // Nothing extra 29 | } 30 | -------------------------------------------------------------------------------- /docs/changes/2.15.0.md: -------------------------------------------------------------------------------- 1 | # Introduced in 2.15.0 2 | 3 | ## Bug Fixes 4 | 5 | * [GH-618](https://github.com/apache/mina-sshd/issues/618) Fix reading an `OpenSshCertificate` from a `Buffer` 6 | * [GH-626](https://github.com/apache/mina-sshd/issues/626) Enable `Streaming.Async` for `ChannelDirectTcpip` 7 | * [GH-628](https://github.com/apache/mina-sshd/issues/628) SFTP: fix reading directories with trailing blanks in the name 8 | * [GH-636](https://github.com/apache/mina-sshd/issues/636) Fix handling of unsupported key types in `known_hosts` file 9 | * [GH-642](https://github.com/apache/mina-sshd/issues/642) Do not use `SecureRandom.getInstanceString()` due to possible entropy starvation (regression in 2.14.0) 10 | * [GH-654](https://github.com/apache/mina-sshd/issues/654) Fix test dependency for assertj in `sshd-contrib` 11 | 12 | ## New Features 13 | 14 | * [GH-606](https://github.com/apache/mina-sshd/issues/606) Support ML-KEM PQC hybrid key exchanges 15 | * [GH-652](https://github.com/apache/mina-sshd/issues/652) New method `KnownHostsServerKeyVerifier.handleRevokedKey()` 16 | 17 | * [SSHD-988](https://issues.apache.org/jira/projects/SSHD/issues/SSHD-988) Support ed25519 keys via the Bouncy Castle library 18 | 19 | ## Potential compatibility issues 20 | 21 | ## Major Code Re-factoring 22 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/io/IoServiceEventListenerManager.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.sshd.common.io; 20 | 21 | /** 22 | * @author Apache MINA SSHD Project 23 | */ 24 | public interface IoServiceEventListenerManager { 25 | IoServiceEventListener getIoServiceEventListener(); 26 | 27 | void setIoServiceEventListener(IoServiceEventListener listener); 28 | } 29 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/mac/MacFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.common.mac; 21 | 22 | import org.apache.sshd.common.BuiltinFactory; 23 | 24 | /** 25 | * @author Apache MINA SSHD Project 26 | */ 27 | // CHECKSTYLE:OFF 28 | public interface MacFactory extends MacInformation, BuiltinFactory { 29 | // nothing extra 30 | } 31 | //CHECKSTYLE:ON 32 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/random/RandomFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.common.random; 21 | 22 | import org.apache.sshd.common.BuiltinFactory; 23 | 24 | /** 25 | * @author Apache MINA SSHD Project 26 | */ 27 | // CHECKSTYLE:OFF 28 | public interface RandomFactory extends BuiltinFactory { 29 | // nothing extra 30 | } 31 | //CHECKSTYLE:ON 32 | -------------------------------------------------------------------------------- /sshd-core/src/main/java/org/apache/sshd/server/command/AsyncCommand.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.sshd.server.command; 20 | 21 | /** 22 | * Represents a command capable of doing non-blocking io. If this interface is implemented by a command, the usual 23 | * blocking input / output / error streams won't be set. 24 | */ 25 | public interface AsyncCommand extends Command, AsyncCommandStreamsAware { 26 | // Nothing extra 27 | } 28 | -------------------------------------------------------------------------------- /sshd-core/src/main/java/org/apache/sshd/server/command/AsyncCommandStreamsAware.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.server.command; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | public interface AsyncCommandStreamsAware 26 | extends AsyncCommandInputStreamAware, AsyncCommandOutputStreamAware, AsyncCommandErrorStreamAware { 27 | // Nothing extra 28 | } 29 | -------------------------------------------------------------------------------- /sshd-core/src/main/java/org/apache/sshd/server/session/ServerProxyAcceptorHolder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.server.session; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | public interface ServerProxyAcceptorHolder { 26 | ServerProxyAcceptor getServerProxyAcceptor(); 27 | 28 | void setServerProxyAcceptor(ServerProxyAcceptor proxyAcceptor); 29 | } 30 | -------------------------------------------------------------------------------- /sshd-core/src/main/java/org/apache/sshd/client/session/ClientProxyConnectorHolder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.client.session; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | public interface ClientProxyConnectorHolder { 26 | ClientProxyConnector getClientProxyConnector(); 27 | 28 | void setClientProxyConnector(ClientProxyConnector proxyConnector); 29 | } 30 | -------------------------------------------------------------------------------- /sshd-core/src/main/java/org/apache/sshd/common/FactoryManagerHolder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.common; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | @FunctionalInterface 26 | public interface FactoryManagerHolder { 27 | /** 28 | * @return The currently associated {@link FactoryManager} 29 | */ 30 | FactoryManager getFactoryManager(); 31 | } 32 | -------------------------------------------------------------------------------- /sshd-core/src/main/java/org/apache/sshd/server/command/CommandDirectStreamsAware.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.server.command; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | public interface CommandDirectStreamsAware 26 | extends CommandDirectInputStreamAware, CommandDirectOutputStreamAware, CommandDirectErrorStreamAware { 27 | // Nothing extra 28 | } 29 | -------------------------------------------------------------------------------- /sshd-core/src/main/java/org/apache/sshd/client/session/ClientSessionHolder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.client.session; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | @FunctionalInterface 26 | public interface ClientSessionHolder { 27 | /** 28 | * @return The underlying {@link ClientSession} used 29 | */ 30 | ClientSession getClientSession(); 31 | } 32 | -------------------------------------------------------------------------------- /sshd-core/src/main/java/org/apache/sshd/common/kex/CurveSizeIndicator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.sshd.common.kex; 20 | 21 | /** 22 | * @author Apache MINA SSHD Project 23 | */ 24 | public interface CurveSizeIndicator { 25 | 26 | /** 27 | * Retrieves the length of a point coordinate in bytes. 28 | * 29 | * @return the length 30 | */ 31 | int getByteLength(); 32 | } 33 | -------------------------------------------------------------------------------- /sshd-core/src/main/java/org/apache/sshd/server/session/ServerSessionHolder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.server.session; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | @FunctionalInterface 26 | public interface ServerSessionHolder { 27 | /** 28 | * @return The underlying {@link ServerSession} used 29 | */ 30 | ServerSession getServerSession(); 31 | } 32 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/client/config/keys/ClientIdentityLoaderManager.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.client.config.keys; 21 | 22 | /** 23 | * TODO Add javadoc 24 | * 25 | * @author Apache MINA SSHD Project 26 | */ 27 | public interface ClientIdentityLoaderManager extends ClientIdentityLoaderHolder { 28 | void setClientIdentityLoader(ClientIdentityLoader loader); 29 | } 30 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/cipher/CipherFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.common.cipher; 21 | 22 | import org.apache.sshd.common.BuiltinFactory; 23 | 24 | /** 25 | * @author Apache MINA SSHD Project 26 | */ 27 | // CHECKSTYLE:OFF 28 | public interface CipherFactory extends BuiltinFactory, CipherInformation { 29 | // nothing extra 30 | } 31 | //CHECKSTYLE:ON 32 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/config/keys/FilePasswordProviderManager.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.common.config.keys; 21 | 22 | /** 23 | * TODO Add javadoc 24 | * 25 | * @author Apache MINA SSHD Project 26 | */ 27 | public interface FilePasswordProviderManager extends FilePasswordProviderHolder { 28 | void setFilePasswordProvider(FilePasswordProvider provider); 29 | } 30 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/auth/UsernameHolder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.common.auth; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | @FunctionalInterface 26 | public interface UsernameHolder { 27 | /** 28 | * @return The attached username - may be {@code null}/empty if holder not yet initialized 29 | */ 30 | String getUsername(); 31 | } 32 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/random/AbstractRandom.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.common.random; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | public abstract class AbstractRandom implements Random { 26 | protected AbstractRandom() { 27 | super(); 28 | } 29 | 30 | @Override 31 | public String toString() { 32 | return getName(); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/util/buffer/BufferException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.sshd.common.util.buffer; 20 | 21 | /** 22 | * @author Apache MINA SSHD Project 23 | */ 24 | public class BufferException extends RuntimeException { 25 | private static final long serialVersionUID = 658645233475011039L; 26 | 27 | public BufferException(String message) { 28 | super(message); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /sshd-contrib/src/test/resources/org/apache/sshd/contrib/common/signature/ssh-dss-2048: -------------------------------------------------------------------------------- 1 | -----BEGIN DSA PRIVATE KEY----- 2 | MIIDPwIBAAKCAQEA1ICHqL15SfQucYj2MQaiVQ6ysrYQdU4uJnhGVg63aMBQeET7Wt7gytsg9G8x 3 | XEF66Awz33WusQKHNLRouawgn/4FjAzlOx17Hta+iT1VT1a/h1lWI7gH/kVpFkkpObpJtmdoAxeg 4 | RrOIZ+46uFfVc9H8NVp9AtzLSccUIPe/PLJDxMsvhI8+T7CCXApyMbwDglrLp/5N8i0uSMQTIeLc 5 | xdTMFbVd4nfb+QXOWLKpwbNln+Wjt5Z3llBLej+aQFXlF3r8qnSkah5UDHQY4bXyYhLEU4PZDuwz 6 | MxkupYAvpNhXk40xe8zfYOd6+k6zUoBkPehIf6VHt+SSG6MwOowBCQIVAO0sDkcISNFnmchCzlyV 7 | utRGd0pTAoIBAQCTuQ+r/gFK3GS4cR1hDN04hbQs+fngmmlvGKhc30lg0hL1blw7T4MrfWuYF9va 8 | OQs5Zv04mOQixLxCC7J/t5EZUl5aXciJGyMC3qsYgAop7W3ktyqweenTL17X8xxeomK1TfuUSQRe 9 | sr/uBi/ke8VMfZowh+YfMYOo6AeVf6dUQUNDhF/QGYvEW7Tm2WRIcmgITuCBSFJkU3fFmTaYylCT 10 | 9hfgBZOqIzALY2b8NrGtFccDKClQOCADUcmNRo5InpzeXBCNtW9O6J7UrEJxmQ5nlWXEEqaHRsYi 11 | Ck/Hn25DyPuDoapPC77y8TXYrIiKIC9FaDH1DyGwvObTNspadBNSAoIBAFerYjYafy9LvQULc2We 12 | m56Kssbhwc0kUPjrz+D4y+lzY+VDxoD5scXyeXXutNoZM8kK/paW95SqXJybmAcQg23PZ2EUSkMb 13 | WAveNt1CM2J1cikVY3sJVmMlu0AGV+AM1JB3hrSzuanBY5DKqwSi/p30kIwVUTRlDjzOVtlg/7aW 14 | z2fSya3JTukXagQacMeq9vDCQqTyJu2IgpocHNuKzmCUducjVhfhAx1vkz7JmLd/omDCAQ6ntN3o 15 | RTMB8uMxpzBe/Obb9pJEO2P/qpbzpygMTjPP6ITQrpmk6ec56W+9hAPnS9qzgf3NrTgZJIoLEdwM 16 | XymiNsgh3jKvHj7HZQYCFQCi5oxBB3/a/3QfzxOXWpHQ4PE5gA== 17 | -----END DSA PRIVATE KEY----- 18 | -------------------------------------------------------------------------------- /sshd-core/src/main/java/org/apache/sshd/common/channel/AbstractChannelRequestHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.common.channel; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | public abstract class AbstractChannelRequestHandler extends AbstractRequestHandler implements ChannelRequestHandler { 26 | protected AbstractChannelRequestHandler() { 27 | super(); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /sshd-core/src/main/java/org/apache/sshd/common/kex/extension/KexExtensionHandlerManager.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.common.kex.extension; 21 | 22 | /** 23 | * TODO Add javadoc 24 | * 25 | * @author Apache MINA SSHD Project 26 | */ 27 | public interface KexExtensionHandlerManager { 28 | KexExtensionHandler getKexExtensionHandler(); 29 | 30 | void setKexExtensionHandler(KexExtensionHandler handler); 31 | } 32 | -------------------------------------------------------------------------------- /sshd-core/src/main/java/org/apache/sshd/server/x11/X11ForwardingExceptionMarker.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.server.x11; 21 | 22 | /** 23 | * Special marker interface used to signal to the forwarding filter that an exception has been caught on the forwarded 24 | * channel 25 | * 26 | * @author Apache MINA SSHD Project 27 | */ 28 | public interface X11ForwardingExceptionMarker { 29 | // nothing extra 30 | } 31 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/util/threads/ExecutorServiceCarrier.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.common.util.threads; 21 | 22 | /** 23 | * @author Apache MINA SSHD Project 24 | */ 25 | @FunctionalInterface 26 | public interface ExecutorServiceCarrier { 27 | /** 28 | * @return The {@link CloseableExecutorService} to use 29 | */ 30 | CloseableExecutorService getExecutorService(); 31 | } 32 | -------------------------------------------------------------------------------- /sshd-sftp/src/main/java/org/apache/sshd/sftp/server/DefaultUserPrincipal.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.sshd.sftp.server; 20 | 21 | import java.nio.file.attribute.UserPrincipal; 22 | 23 | /** 24 | * @author Apache MINA SSHD Project 25 | */ 26 | public class DefaultUserPrincipal extends PrincipalBase implements UserPrincipal { 27 | 28 | public DefaultUserPrincipal(String name) { 29 | super(name); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # NOTE: see https://help.github.com/en/github/using-git/configuring-git-to-handle-line-endings#refreshing-a-repository-after-changing-line-endings 2 | # regarding the need to re-normalize the files after changing this one 3 | 4 | # Handle line endings automatically for files detected as text 5 | # and leave all files detected as binary untouched. 6 | * text=auto 7 | 8 | *.txt text eol=lf 9 | *.sh text eol=lf 10 | *.properties text eol=lf 11 | *.groovy text eol=lf 12 | *.scala text eol=lf 13 | *.java text eol=lf 14 | *.pl text eol=lf 15 | *.md text eol=lf 16 | *.awk text eol=lf 17 | *.xml text eol=lf 18 | *.html text eol=lf 19 | *.yaml text eol=lf 20 | *.json text eol=lf 21 | *.py text eol=lf 22 | *.js text eol=lf 23 | *.bat text eol=crlf 24 | *.vbs text eol=crlf 25 | mvnw text eol=lf 26 | mvnw.cmd text eol=crlf 27 | 28 | # These files are binary and should be left untouched 29 | # (binary is macro for -text -diff) 30 | *.jpg binary 31 | *.gif binary 32 | *.png binary 33 | *.class binary 34 | *.pdf binary 35 | *.jar binary 36 | *.zip binary 37 | *.war binary 38 | -------------------------------------------------------------------------------- /sshd-common/src/main/java/org/apache/sshd/common/compression/CompressionFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.sshd.common.compression; 21 | 22 | import org.apache.sshd.common.BuiltinFactory; 23 | 24 | /** 25 | * @author Apache MINA SSHD Project 26 | */ 27 | // CHECKSTYLE:OFF 28 | public interface CompressionFactory extends BuiltinFactory, CompressionInformation { 29 | // nothing extra 30 | } 31 | //CHECKSTYLE:ON 32 | --------------------------------------------------------------------------------