Skip to content
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

Can use SCP or SSHFS with EternalTerminal? #627

Open
AGI-chandler opened this issue Apr 3, 2024 · 5 comments
Open

Can use SCP or SSHFS with EternalTerminal? #627

AGI-chandler opened this issue Apr 3, 2024 · 5 comments

Comments

@AGI-chandler
Copy link

Just wondering if there are ways to use et to establish connections like we do with sftp or to copy data like we do with scp?  Thanks

@MisterTea
Copy link
Owner

MisterTea commented Apr 4, 2024 via email

@AGI-chandler
Copy link
Author

I don't understand why port forwarding is required when we didn't need that to get EternalTerminal working, can you help me understand why?  This is the only way?  

In the Files manager (Gnome), I can open a location like sftp://[remote] | [remote] = short host from ~/.ssh/config, and it will mount my home dir on the remote server somewhere local.  I guess this is actually using sshfs underneath instead of sftp so I'm actually trying to use sshfs and somehow mount a remote dir with EternalTerminal, so it doesn't cause system to hang whenever access is lost.  

I figured a command like: sshfs [remote]: /[mountpoint] -o ssh_command=et could work (this when et [remote] already works fine).  Have tried a few different commands, including using -o ssh_command=ssh-et but everything always ends in read: Connection reset by peer.  I'm guessing that's what the port forwarding would fix?  I can't even figure out how to turn on verbose messages from sshfs though 💢😠

but you'd imagine such an sshfs command would be more like what?

@MisterTea
Copy link
Owner

sftp is a protocol that et doesn't implement. What you can do is forward your ssh port and then run sftp over that.

@AGI-chandler AGI-chandler changed the title Can use SCP or SFTP with EternalTerminal? Can use SCP or SSHFS with EternalTerminal? May 1, 2024
@AGI-chandler
Copy link
Author

Sorry for the confusion but can blame Gnome folks for letting me type sftp://example.com and it mounts my home dir on example.com somewhere in ~/.gvfs or something.  Either way, in the background it's really using sshfs command and there's no extra ports or forwarding needed it uses port 22. The point is to have an EternalMount instead of an EternalTerminal.

@MisterTea
Copy link
Owner

I started working on a eternal version of sshfs here: https://github.com/MisterTea/CodeFS

I haven't touched it in a while though and it needs to be tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants