![]() Then I tried to do apt install openssh-client in the Docker image with no effect. I thought maybe I should restart sshd service but systemctl doesn’t seem to work: “System has not been booted with systemd as init system (PID 1). Tried installing scp binary to no effect. I tried too, ssh-ing works fine, scp throws error “Connection to localhost closed by remote host.”. I fixed that with: ssh # SSH into my alpine imageĪfter that, I was able to scp from my client with: scp foo/ My app was running a minimal Docker alpine image, so it didn’t have the scp binary. I didn’t realize this, but for scp to work, the scp binary has to be present on both ends of the connection. # When prompted, save to a file, like nfįly wireguard create "$" /etc/wireguard & \įrom here, you’ll be able to SSH into your VM from your dev machine: APP_NAME="yourappname" # Change to the name of your fly VM WG_PEER_NAME="devbox" # Change to any name ![]() On my client machine, I installed Wireguard: sudo apt install -y wireguard-tools resolvconf & \Īnd then I added my local dev machine as a Wireguard peer: FLY_REGION="ewr" # Change to your app's region ![]() ![]() Here’s what I did in case it’s helpful for anyone else. I tried running flyctl ips private, but I couldn’t ssh to the IP address from my client machine. I wasn’t able to scp using the instructions above. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |