From 3a2e60082b5f59749a9427486bcc6005c5e23188 Mon Sep 17 00:00:00 2001 From: Emil DRAGU Date: Sun, 28 Aug 2022 19:01:48 +0300 Subject: [PATCH] Synced folder ssh reverse mount ignores ssh_username It probably ignores ssh_host and ssh_password also, fix is only for ssh_username --- lib/vagrant-sshfs/cap/host/linux/sshfs_reverse_mount.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-sshfs/cap/host/linux/sshfs_reverse_mount.rb b/lib/vagrant-sshfs/cap/host/linux/sshfs_reverse_mount.rb index 367fdb9..be583b8 100644 --- a/lib/vagrant-sshfs/cap/host/linux/sshfs_reverse_mount.rb +++ b/lib/vagrant-sshfs/cap/host/linux/sshfs_reverse_mount.rb @@ -118,7 +118,7 @@ def self.sshfs_mount(machine, opts) sshfs_opts_append+= ' -o ' + mount_options.join(',') + ' ' end - username = machine.ssh_info[:username] + username = opts.key?(:ssh_username) ? opts[:ssh_username] : machine.ssh_info[:username] host = machine.ssh_info[:host]