I start up sftp server using Apache Mina Sshd Api. please refer follow link to see more details about my local SFTP server. Link .
I tried to connect to that server from remotely by giving host name as my ip address but i couldn't enable to connect with the sftp server. I got " connection refused " error message.But i can connect locally.To connect locally i use winscp sftp client giving my host name as "localhost" but in remotely i can not give host name as localhost.So i gave host name as my machine IP address.When i gave that i got above error message.
So i would like to know that how can i connect with my local sftp server from remote machine.
Thank you.
Hi finally found out How to access Apache Mina sshd sftp server from remote machine . The problem was on my Apache Mina sshd sftp server set up.You can refer attached link to see my Apache Mina sshd sftp server details.
In there previously i set host as sshd.setHost("localhost");
instead of that i changed it into sshd.setHost(0.0.0.0);
.So now you can access your local sftp server providing your machine ip address as a host name from remote machine.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.