On 2014-12-10 06:07, John Andersen wrote:
On 12/09/2014 08:41 PM, Carlos E. R. wrote:
I can verify that sftp in MC does in fact work, and connects via ssh on OpenSuse 13.2
If it becomes very important to you can send you via private email screen shots from both MC running on my machine connecting to a server, showing the port the connection arrives on, the running process, etc.
But I expect you to take my word, as I have absolutely no reason to lie to you.
Ok, but take my word that it does not work here, in any computer I tried, in any direction (13.1 --> 13.2, 13.2 --> 13.1) I can not paste photos today, I'm about to go to sleep. But ascii paste should suffice Left File Command Options Right ┌<─ ~ ───────────────────.[^]>┐┌<─ ~ ───────────────────.[^]>┐ │.n Name │Size │Modify time││.n Name │Size │Modify time│ │/.. │--DIR│ov 23 12:45││/.. │--DIR│ov 23 12:45│ │/.cache │ 127│ec 10 05:33││/.cache │ 127│ec 10 05:33│ │/.c 5:23│ │/.d ┌──────────────── SFTP to machine ────────────────┐ 2:50│ │/.f │ Enter machine name (F1 for details): │ 2:45│ │/.g │ cer@telcontar.valinor [^] │ 0:49│ │/.g ├─────────────────────────────────────────────────┤ 2:50│ │/.l │ [< OK >] [ Cancel ] │ 2:50│ │/.m └─────────────────────────────────────────────────┘ 0:39│ │/.s 8:03│ │/Desktop │ 6│ov 23 12:50││/Desktop │ 6│ov 23 12:50│ │/Documents │ 19│ov 30 02:43││/Documents │ 19│ov 30 02:43│ │/Downloads │ 6│ov 23 12:50││/Downloads │ 6│ov 23 12:50│ │/Music │ 6│ov 23 12:50││/Music │ 6│ov 23 12:50│ ├─────────────────────────────┤├─────────────────────────────┤ │UP--DIR ││UP--DIR │ └───────── 1790M/3064M (58%) ─┘└───────── 1790M/3064M (58%) ─┘ Hint: % macros work even on the command line. cer@oS-13-2:~> [^] 1Help 2Menu 3View 4Edit 5Copy 6Re~ov 7Mkdir 8De~te and I get, on iptraf iptraf-ng 1.1.4 ┌ TCP Connections (Source Host:Port) ───────────── Packets ──── Bytes Flag Iface ───┐ │┌192.168.74.112:36662 = 11 1539 --A- eno1 │ │└192.168.1.14:22 = 12 2799 -PA- eno1 │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ └ TCP: 1 entries ────────────────────────────────────────────────────── Active ─┘ ┌────────────────────────────────────────────────────────────────────────────────────┐ │ UDP (63 bytes) from 192.168.74.112:48378 to 192.168.74.2:53 on eno1 │ │ UDP (63 bytes) from 192.168.74.112:48378 to 192.168.74.2:53 on eno1 │ │ UDP (93 bytes) from 192.168.74.2:53 to 192.168.74.112:48378 on eno1 │ │ UDP (104 bytes) from 192.168.74.2:53 to 192.168.74.112:48378 on eno1 │ │ │ │ │ Packets captured: 36 │ TCP flow rate: 0.00 kbps Up/Dn/PgUp/PgDn-scroll M-more TCP info W-chg actv win S-sort TCP X-exit then mc prompts for a password, and I get back: Left File Command Options Right ┌<─ ~ ───────────────────.[^]>┐┌<─ ~ ───────────────────.[^]>┐ │.n Name │Size │Modify time││.n Name │Size │Modify time│ │/.. │--DIR│ov 23 12:45││/.. │--DIR│ov 23 12:45│ │/.cache │ 127│ec 10 05:33││/.cache │ 127│ec 10 05:33│ │/.co :23│ │/.db ┌───────────────────── Error ─────────────────────┐ :50│ │/.fo │ │ :45│ │/.gk │ Cannot chdir to "/sftp://cer@telcontar.valinor" │ :49│ │/.gs │ │ :50│ │/.lo └─────────────────────────────────────────────────┘ :50│ │/.mo :39│ │/.ssh │ 25│ec 9 18:03││/.ssh │ 25│ec 9 18:03│ │/Desktop │ 6│ov 23 12:50││/Desktop │ 6│ov 23 12:50│ │/Documents │ 19│ov 30 02:43││/Documents │ 19│ov 30 02:43│ │/Downloads │ 6│ov 23 12:50││/Downloads │ 6│ov 23 12:50│ │/Music │ 6│ov 23 12:50││/Music │ 6│ov 23 12:50│ ├─────────────────────────────┤├─────────────────────────────┤ │UP--DIR ││UP--DIR │ └───────── 1790M/3064M (58%) ─┘└───────── 1790M/3064M (58%) ─┘ Hint: You can do anonymous FTP with mc by typing 'cd ftp://mac cer@oS-13-2:~> [^] 1Help 2Menu 3View 4Edit 5Copy 6Re~ov 7Mkdir 8De~te (the message box in the middle is in red) and iptraf shows this activity, which as you see, has not changed on port 22 - meaning it did not do anything on the network after entering the password. iptraf-ng 1.1.4 ┌ TCP Connections (Source Host:Port) ───────────── Packets ──── Bytes Flag Iface ───┐ │┌192.168.74.112:36662 = 16 1891 CLOS eno1 │ │└192.168.1.14:22 = 17 3091 CLOS eno1 │ │┌192.168.74.112:741 > 18 1752 --A- eno1 │ │└192.168.1.14:2049 > 18 1854 -PA- eno1 │ │ │ On the host, I see: <4.6> 2014-12-10 06:20:46 Telcontar sshd 25663 - - Received disconnect from 192.168.1.14: 11: Normal Shutdown [preauth] On the same terminal, ssh works: cer@oS-13-2:~> mc cer@oS-13-2:~> ssh cer@telcontar.valinor Password: Last login: Tue Dec 9 18:03:21 2014 from telcontar.valinor Have a lot of fun... No matter whether th' constitution follows th' flag or not, th' supreme court follows th' iliction returns. -- Mr. Dooley cer@Telcontar:~>
You probably do not have sftp turned on in your /etc/ssh/sshd_config on your target.
--------snip of sshd_config in a very old server # override default of no subsystems Subsystem sftp /usr/lib64/ssh/sftp-server
It is enabled. Has been so for ages.
It means probably that the packager disabled ssh. :-(
It means you did not turn on sftp in the target.
I mean the missing shell menu entry in mc. I can use mc in 12.3 or 13.1 with the same hardware, using the shell menu entry, and it works. The sftp entry doesn't work in any. Has been so for ages. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)