[英]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.