Ticket #2256 (new defect)
shell link via ssh fails to restore after connection lost
Reported by: | crissi | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | Future Releases |
Component: | mc-vfs | Version: | master |
Keywords: | Cc: | zaytsev, gotar@… | |
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description
I use a remote dir using "Shell link" (via ssh). If the connection was resetted by peer (e.g. adsl disconnect and reconnect with new ip address) changing the remote director fails instead of reconnecting. mc knows my password already, so it could reconnect and shoudl do that. Selecting "Rescan" fails also :(
Reconnect via "Shell link" also fails. Only way is to close mc and start again from new.
Change History
comment:2 in reply to: ↑ description Changed 14 years ago by andrew_b
Replying to crissi:
Only way is to close mc and start again from new.
Did you try to decrease the VFS timeout (menu Options->Virtual FS) or free VFS forced (menu Command->Active VFS list)?
comment:3 Changed 14 years ago by crissi
No but its set to 60s. But it fails also after this time (e.g. several hours)
comment:4 follow-up: ↓ 8 Changed 14 years ago by zaytsev
- Cc zaytsev added
- Version changed from 4.7.0-pre1 to master
I don't think it's possible to implement this, because actually mc doesn't know the password (remember, we are talking about FISH, not FTP here). However, rescan is probably to be fixed...
comment:6 Changed 13 years ago by andrew_b
- Branch state set to no branch
- Milestone changed from 4.7 to Future Releases
comment:7 Changed 10 years ago by andrew_b
Ticket #3249 has been marked as a duplicate of this ticket.
comment:8 in reply to: ↑ 4 Changed 10 years ago by csbubbles
I use RSA keys instead, so Midnight Commander has no idea about any passwords at all, but the issue is still there. It first opens the connection to the remote server just fine, but after it gets disconnected for any reason, the only way to connect again is to restart Midnight Commander, otherwise it just shows "Can't open ssh://... folder" or something like this. Refer to #3249.
Replying to zaytsev:
I don't think it's possible to implement this, because actually mc doesn't know the password (remember, we are talking about FISH, not FTP here). However, rescan is probably to be fixed...
comment:9 Changed 7 years ago by andrew_b
Ticket #2734 has been marked as a duplicate of this ticket.
comment:10 Changed 7 years ago by andrew_b
Ticket #3841 has been marked as a duplicate of this ticket.
comment:11 Changed 7 years ago by pbodnar
Hello,
this seems like a major "usage blocker" for using FTP in MC on a regular basis. Why MC cannot make the same "connect action" when it gets the aforementioned connection error (something that other FTP clients normally do)? What exactly is the issue which blocks this fix ("FISH" is not a satisfactory answer to me ;))?
comment:12 Changed 6 years ago by cri
Still happening (ssh vfs with linux openssh server on the remote side).
Anyway I've noticed that if the remote ssh server comes up again "quite soon" (I've tested 10-20 seconds), mc works as intended (no bug), otherwise (if the remote stays down for some longer time, e.g. some minutes) the bug happens.
I thought this was related to "VFS timeout (menu Options->Virtual FS)", I had the default value: 60s, so I tried increasing it, but it didn't help.
So I guess some other kind of timeout is involved.