WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: ssh and MidnightCommander mc  (Read 13133 times)

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
ssh and MidnightCommander mc
« on: December 28, 2013, 12:00:44 PM »
Hi:
Using the MidnightCommander "shell link to machine" function works on Linux Mint14 but not in TinyCore (all versions)

In piCore and other cores I get the following message after I input within the Left -Shell link...
Enter machine name (F1 for details)
it asks me permanently for my password.

fish: Waiting for initial line...
sam@192.168.0.14's password:
sam@192.168.0.14's password:

Error
Cannot chdir to "/sh://192.168.0.14"

Can somebody help? May be I have to install some other extensions?
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: ssh and MidnightCommander mc
« Reply #1 on: December 28, 2013, 12:17:02 PM »
hi beerstein,

ssh and mc work fine for me.

perhaps the reason for your problems are different user-names, user ids or a even a different port for the ssh-sever.

on tinycore the common user is tc and ssh has port 22.
if f.e. the user on the server is sam and the sshserver offers the port 22222,
then following command works in mc.

choose shell link in the menue and then enter:
sam@192.168.0.14:22222
then after the password-request and entering the password the link is connected for you.

i guesss your problem is a different user or his user id,
cause it's possible to have the user sam with user id 1000,
or another user sam with the user id 500.
some distribution start with the first user with user id 1000, others with user id 500.
the user tc has the user id 1001.

the other way is to build a ssh tunnel over localhost and a connection over this specific localhost port.
« Last Edit: December 28, 2013, 12:25:16 PM by netnomad »

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: ssh and MidnightCommander mc
« Reply #2 on: December 29, 2013, 08:10:22 AM »
Thank you netnomad:
I now used:
tc@192.168.0.14:22    (on my Mint14 PC)
after password
I was connected to piCore user tc from Mint14 user sam - so it works now!

The problem was the missing port number 22. I do not need that 22 when I use mc in Mint14 to connect to localhost or to Mint14 IP.

But - it did not work the other way around. I still can not connect via mc from piCore into my Mint14 pc.
ssh from cli works but not inside mc. In mc :
Left shell Link  Shell Link to machine Enter machine name(F1for details)
ssh sam@192.186.0.6:22
fish: Waiting for initial line.....
ssh sam@192.168.0.6's password:
ssh sam@192.168.0.6's password:
no progress just repeating for pwd input

Hi again I played around with different inputs in mc input line:
ssh sam@192.186.0.6:22  did not work
ssh sam@192.186.0.6:22
$ sam@192.168.0.6   worked !! I can not believe it.
« Last Edit: December 29, 2013, 10:08:56 AM by beerstein »
t(w)o be(ers) or not t(w)o be(ers) that is the question