Reputation: 2279
i have two CentOS Servers
One has application for manage printing templates Another contain app which is take files from hotfolder and send them to the printer
How i can set up permanent sftp connection between this two servsers? Or may be you can suggest something better?
Upvotes: 1
Views: 1206
Reputation: 169
You could have one of the machines act as an SSH server (you'll need to install OpenSSH or the like for that) and then mount it from the other one via sshfs. To make the mountpoint "permanent" (persistent across reboots) you can use public-private key authentication (so that there's no need to enter a password) and write a script to run the sshfs command from the client for you at startup.
Upvotes: 3