Ticket #3039 (closed defect: invalid)

Opened 11 years ago

Last modified 2 weeks ago

sftpfs: SSH aliases (#2923 wrong fix)

Reported by: trap000d Owned by:
Priority: major Milestone:
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

Change History

comment:1 Changed 2 weeks ago by andrew_b

  • Status changed from new to closed
  • Resolution set to invalid
  • Milestone Future Releases deleted

Having following ~/.ssh/config:

host github.com
    IdentityFile ~/.ssh/github.com.key

host midnight-commander.org
    IdentityFile ~/.ssh/midnight-commander.org.key

host example
    HostName 127.0.0.1
    User andrew

Works fine for me.

comment:2 Changed 2 weeks ago by zaytsev

Probably fixed in #3456 .

Note: See TracTickets for help on using tickets.