-
-
Notifications
You must be signed in to change notification settings - Fork 606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSH Key Pair for Web User #1259
Comments
I guess you also need a keypair on the existing server? I should probably know this... but does the My first thought isn't really to build this into Trellis because:
I also wonder if using SSH forwarding or tunnelling to rsync between the two remove servers from your local machine: https://unix.stackexchange.com/questions/183504/how-to-rsync-files-between-two-remotes If something like that ^ works, maybe we could build a command into trellis-cli to help? |
Yes. That looks great. Will use it now.
That would be very cool! I haven't written anything in Go yet but would certainly help with Docs if that would be useful. |
By the way, there isn't an ssh key pair generated for I think that with using ssh forwarding this way as you recommend above, all of the data will be moving through the local machine. Is that correct? For people with sketchy DSL like what's available here, that might not be a good solution. |
I think that's true of the tunnelling solution. Forwarding is a direct connection though and skips the local machine afaik. |
I like the sound of it. Poked it making the command work locally but lost patience and just sshed into the server manually. This is the commend I was running:
Error is
I don't think it would matter, but am faking DNS on the local/dev box. May have to do with 50000 being outside of the ephemeral port range, but I'm having trouble figuring out what the range is. |
Hello! No need to tunnel through your local machine for that. To talk between remote hosts, you can use SSH Agent Forwarding, as such: $ ssh -o ForwardAgent=yes admin@host1 "ssh admin@host2" or, for Rsync, e.g.: $ ssh -o ForwardAgent=yes admin@host1 "rsync --archive --new-compress --rsh='ssh -o StrictHostKeyChecking=no' --progress admin@host2:/uploads/on/host2/ /uploads/on/host1/" This requires that your own SSH is of course in the The same works for |
I posted some ideas an on existing trellis-cli issue: roots/trellis-cli#109 |
Closing this since this feature won't be added in Trellis itself. If anyone has anything to contribute, see roots/trellis-cli#109 |
Summary
Would it make sense to have a task that generates a key pair for the web user?
Motivation
On a new migration, I'm frequently using
rsync
to transfer shared content like theuploads
directory. This requires me to have an ssh key pair on the new Trellis server.That's obviously an ignorant approach, but I'm not even sure if the idea makes sense.
Additional context
The text was updated successfully, but these errors were encountered: