# MC issue sftp@ Name or service not known (-2)

**URL:** <https://dietpi.com/forum/t/mc-issue-sftp-name-or-service-not-known-2/24522>\
**Category:** General Discussion\
**Created:** [11 October 2025 19:14 UTC](https://dietpi.com/forum/t/mc-issue-sftp-name-or-service-not-known-2/24522 "2025-10-11T19:14:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mydogteddy](https://dietpi.com/forum/user_avatar/dietpi.com/mydogteddy/32/7352_2.png) [@mydogteddy](https://dietpi.com/forum/u/mydogteddy)\
**Post date:** [11 October 2025 19:14 UTC](https://dietpi.com/forum/t/mc-issue-sftp-name-or-service-not-known-2/24522/1 "2025-10-11T19:14:22Z")

</div>

Can anyone solve why I see this in Midnight commander when I try to sftp

using sftp://root:192.xxx..xxx..xxx:2288

Never mind I reflashed the pendrive I was trying to use the RPi4 firmware on my RPi 5 I thought it would have been OK but perhaps not

---

<div class="post-metadata">

**Author:** ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)\
**Post date:** [12 October 2025 11:57 UTC](https://dietpi.com/forum/t/mc-issue-sftp-name-or-service-not-known-2/24522/2 "2025-10-12T11:57:29Z")

</div>

Your syntax is incorrect, midnight commander expects `sftp://user@host:port` not `sftp://user:host:port`.

---

<div class="post-metadata">

**Author:** ![mydogteddy](https://dietpi.com/forum/user_avatar/dietpi.com/mydogteddy/32/7352_2.png) [@mydogteddy](https://dietpi.com/forum/u/mydogteddy)\
**Post date:** [12 October 2025 14:41 UTC](https://dietpi.com/forum/t/mc-issue-sftp-name-or-service-not-known-2/24522/3 "2025-10-12T14:41:46Z")

</div>

yes it was my typo when I messaged here but my command on the RPi was sftp://root@192.16

My eyes are failing, I am very old, sadly (😄

---

<div class="post-metadata">

**Author:** ![mydogteddy](https://dietpi.com/forum/user_avatar/dietpi.com/mydogteddy/32/7352_2.png) [@mydogteddy](https://dietpi.com/forum/u/mydogteddy)\
**Post date:** [13 October 2025 12:32 UTC](https://dietpi.com/forum/t/mc-issue-sftp-name-or-service-not-known-2/24522/4 "2025-10-13T12:32:00Z")

</div>

I am using dropbear and to solve this I needed to install apt install openssh-sftp-server

---

<div class="post-metadata">

**Author:** ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)\
**Post date:** [13 October 2025 13:16 UTC](https://dietpi.com/forum/t/mc-issue-sftp-name-or-service-not-known-2/24522/5 "2025-10-13T13:16:29Z")

</div>

Yes make sense to instal sftp when you want to use it 😅

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [11 January 2026 13:17 UTC](https://dietpi.com/forum/t/mc-issue-sftp-name-or-service-not-known-2/24522/6 "2026-01-11T13:17:02Z")

</div>

Closed on 11 January 2026 13:17 UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
