RE: midnight commander and ssh sftp

2006-02-17 Thread Bob


 Is there some way to be able to use midnight
commander through a SSH
 tunnel?

1) Use scp/sftp: it's called Shell link... is mc menu
(the problem is
Password: prompt is displayed somewhere on the mc
command line as it seems to
be unable to parse it for some reason. So when see it,
simply enter the
password there  refresh the mc panels w/ C-O,C-O)

2) More general solution: if u run 6.0 use
sysutils/fusefs-sshfs
(http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/f
usefs-sshfs/),
it provides an scp/sftp link within filesystem layer,
so you can use it not
only from mc but from any app. The problem it seems to
be much slower than
plain scp (though uses the same transport), dunno why

--
Regards, Mirya
ICQ #313898202



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf
Of Kyryll A
Mirnenko aka Mirya
Sent: Thursday, February 16, 2006 1:53 PM
To: freebsd-questions@freebsd.org;
[EMAIL PROTECTED]
Subject: Re: midnight commander and ssh sftp


Mirya;

After spending some time playing around with MC,
I finally figured out the meaning of your post.

When you said MC menu I took that to mean the F2 (ie:
function 2 key)
which is displayed at the bottom of the MC panel.

What you really meant was the F9 pull down function
from the bottom
of the MC panel which activates the menu
Left file command options right at the top of the MC
panel.

The left  right pull down menu option do have the
FTP link  SH link option you talked about.

Selecting the SH link opens a window where I entered
/#sh:[EMAIL PROTECTED] Host]
then clicking on OK button lanched an SSH login.

Also entering cd /#sh:[EMAIL PROTECTED] Host] on the MC
command
line does the same thing.

MC returns to it's 2 up panel and the MC command lines
at the
bottom of the panel asks for the SSH pass phrase.
After entering the pass phrase I do get the remote
hosts
directory tree displayed with a heading of the /#sh:
command used to launched it.

This all behaves the same way as native FTP using MC.
But after entering the pass phrase the MC command line
does not clear at all and ends up containing some left
over SSH message.

Holding down the CTL key while pressing the keyboard
letter C and O at the same time 2 times in a role does
clear the MC command line like you said.

When completed doing SSH sftp through MC I termate the
MC SSH session with the remote host by hitting F10 key.

For testing, I changes my firewall rules on port 22 to
log
all packets to verify that MC was really initating a
SSH
session with the host.

The host log records did verify that MC did indeed
initate a SSH session with the host.

This is exastily what I wanted to do.

Now I have an Freebsd command line launched GUI for
sftp
SSHing into the remote host system.

Thanks for the pointer that got me started
looking in the correct direction.













___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: midnight commander and ssh sftp

2006-02-16 Thread Kyryll A Mirnenko aka Mirya
 Is there some way to be able to use midnight commander through a SSH
 tunnel?
1) Use scp/sftp: it's called Shell link... is mc menu (the problem is 
Password: prompt is displayed somewhere on the mc command line as it seems to 
be unable to parse it for some reason. So when see it, simply enter the 
password there  refresh the mc panels w/ C-O,C-O)
2) More general solution: if u run 6.0 use sysutils/fusefs-sshfs 
(http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/fusefs-sshfs/),
it provides an scp/sftp link within filesystem layer, so you can use it not 
only from mc but from any app. The problem it seems to be much slower than 
plain scp (though uses the same transport), dunno why

-- 
Regards, Mirya
ICQ #313898202
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: midnight commander and ssh sftp

2006-02-16 Thread bob
The mc installed 2 weeks ago on Freebsd 6.0 is mc 4.6.0 and
there is no shell link in the mc internal menu.

What version of mc are you using that it has that in the menu?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Kyryll A
Mirnenko aka Mirya
Sent: Thursday, February 16, 2006 1:53 PM
To: freebsd-questions@freebsd.org; [EMAIL PROTECTED]
Subject: Re: midnight commander and ssh sftp


 Is there some way to be able to use midnight commander through a
SSH
 tunnel?
1) Use scp/sftp: it's called Shell link... is mc menu (the problem
is
Password: prompt is displayed somewhere on the mc command line as it
seems to
be unable to parse it for some reason. So when see it, simply enter
the
password there  refresh the mc panels w/ C-O,C-O)
2) More general solution: if u run 6.0 use sysutils/fusefs-sshfs
(http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/fusefs-sshfs/)
,
it provides an scp/sftp link within filesystem layer, so you can use
it not
only from mc but from any app. The problem it seems to be much
slower than
plain scp (though uses the same transport), dunno why

--
Regards, Mirya
ICQ #313898202
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]