简体   繁体   English

有没有密码或私钥参考的连接到SFTP服务器的方法

[英]Is there a way to connect to SFTP server without password or private key reference

I want to upload file over an SFTP server without password authentication. 我想在没有密码身份验证的情况下通过SFTP服务器上传文件。 Here I don't want to use private key either. 在这里,我也不想使用私钥。 My public key is already shared to the destination SFTP server. 我的公钥已共享到目标SFTP服务器。 And I can login to it by using username@hostname as url from filezilla without password or private key reference.i want to achieve the same from java code. 而且我可以通过使用username @ hostname作为filezilla的URL登录到它,而无需密码或私钥引用。我想从Java代码中实现相同的目的。 I have explored j2shh, maverick and jsch APIs also but every where password or private key is required for authentication. 我也探索过j2shh,maverrick和jsch API,但是每一个都需要使用密码或私钥进行身份验证。 Is there any way I can connect to the server by using username@hostname only from java code? 我只能通过Java代码使用username @ hostname连接到服务器吗?

The post following will be your help. 以下帖子将为您提供帮助。

This, in a nutshell, SSH server permits client users to login without password. 简而言之,SSH服务器允许客户端用户无需密码即可登录。 It means users need to request username and hostname at least. 这意味着用户至少需要请求用户名和主机名。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 apache vfs2 for sftp with public-private-key and without password - How to use apache vfs2 for sftp with public-private-key and without password SFTP公钥/私钥认证-在没有密钥位置的情况下可以工作吗? - SFTP public/private key authentication - can it work without the key location? SFTP j2ssh,我可以不使用密码或密钥进行连接吗? - SFTP j2ssh, can i connect without password or keys? 在内存/嵌入式 SFTP 服务器中使用 Java 中的私钥身份验证进行测试 - In memory/embedded SFTP server for test with private key authentication in Java JCraft:SCP使用不带密码的私钥 - JCraft : SCP using private key without password 公钥或私钥作为连接到远程数据库ssh的密码 - public key or private key as a password of connect to remote database, ssh 使用JSch无需用户名或密码即可连接到服务器 - Connect to server without username or password using JSch 如何在不知道密码的情况下将私钥导入Java密钥库 - How to import a private key into a Java keystore without knowning the password 无论如何通过公钥/私钥认证在多个客户端和sftp服务器之间建立连接? - Is there anyway to establish connection between multiple client and sftp server through public/private key authentication? 使用具有公钥/私钥认证的JSch从远程SFTP服务器接收数据。 任何例子? - Ingesting data from remote SFTP server using JSch with public/private key authentication. Any examples?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM