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

cd sh:// RemoteCommand fails #4611

Open
mc-butler opened this issue Dec 9, 2024 · 1 comment
Open

cd sh:// RemoteCommand fails #4611

mc-butler opened this issue Dec 9, 2024 · 1 comment
Labels
area: vfs Virtual File System support prio: medium Has the potential to affect progress ver: 4.8.32 Reproducible in version 4.8.32

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/4611
Reporter DirectorBazy (yura.dm@….com)

having a host with 'RemoteCommand' option defined in ~/.ssh/config
e.g.

Host my_remote_host
    HostName my_remote_host.com
    Port 22
    User me_on_remote
    IdentityFile ~/.ssh/id.private
    RemoteCommand sudo su - adm_on_remote
    RequestTTY yes
cd sh://my_remote_host

fails with error

Cannot change directory to /sh://my_remote_host
Input/output error (5)

(mc:72268): GLib-CRITICAL : ... g_string_free: assertion 'string != NULL' failed

If RemoteCommand is not specified the cd works as expected.
Expecting behavior is that cd works as well if RemoteCommand is defined as following:

RemoteCommand sudo su - other_user_at_remote_host

See: https://unix.stackexchange.com/questions/354594/remote-command-in-ssh-config-file

@mc-butler
Copy link
Author

Changed by zaytsev (@zyv) on Dec 17, 2024 at 6:36 UTC (comment 1)

Patch for glib assertion in Ticket #4572: mc-4572-fix-Glib-g_string_free-assertion.patch .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: vfs Virtual File System support prio: medium Has the potential to affect progress ver: 4.8.32 Reproducible in version 4.8.32
Development

No branches or pull requests

1 participant