id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
4611	cd sh:// RemoteCommand fails	DirectorBazy		"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"	defect	new	major	Future Releases	mc-vfs	4.8.32						no branch	
