If you happen to be on OSX...
When I tried running it with username@local:/file_directory...
I got the following error:
ssh: local: node name or service name not known Solution
On my Mac I had to do the following to setup local ssh:
‘System Preferences’ --> ‘Internet & Networking’ --> ‘Sharing’ --> ENABLE ‘Remote Login’
This then provided the username@ip address.