This one was a bit of a head-banger. I use ssh_config to cut down on typing when dealing with ssh & scp et al. My config file is pretty simple and a definition for one server might be like this: Host KratosLAN User mbcdev HostName 192.168.1.10 Port 3421 IdentityFile ~/.ssh/id.rsa
In an app I’m making I have the need to copy a file from my app to the local filesystem. Not a complicated task but I hit snag and it doesn’t appear to be that well documented so I thought I’d share.