Ticket #3039 (new defect)

Opened 11 years ago

sftpfs: SSH aliases (#2923 wrong fix)

Reported by: trap000d Owned by:
Priority: major Milestone: Future Releases
Component: mc-vfs Version: 4.8.9
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

GNU Midnight Commander 4.8.9
Built with GLib 2.34.1
Using the S-Lang library with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm
With support for X11 events
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, sftpfs, fish
Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;

If the file ~/.ssh/config exists and no matter contains or not an alias for SSH connection then it does not possible to open SFTP link. The error text is:

Cannot chdir to "/sftp://user@host"
(17) sftp: an error occurred while reading ~/.ssh/config: File exists

After erasing the file it's possible to connect to remote host via sftp.

Steps to reproduce:
# Have file ~/.ssh/config
# run mc
# try to connect any ssh host via menu (F9->Right->SFTP Link)
# get above error

Expected result
# working SFTP VFS

Note: See TracTickets for help on using tickets.