Re: possible? ssh-connection as XP- network connection

From: Bernd Breitschaedel (berndb_at_sbox.tugraz.at)
Date: 06/30/05


Date: Thu, 30 Jun 2005 19:54:22 +0200

Thank you Andrew,

I intended to use this network drive as a backup drive (using Insync).
So your suggestion and my intention look into the same direction.

My server uses Keyboard-interactive authentification:
C:\rsync>ssh2 aaa@abc.at -oallowedauthentications=keyboard-in
teractive
works fine. Unfortunatly i couldn't establish a ssh2-connection with
unison (see my tries below)

*) (How) can i force unison to use keyboard-interactive authentification?

*) For my application a mirror program like rsync would even better fit
my requirement than a sync program.
Unfortunatly i didn't succed using rsync with ssh tunneling. (see also
my tries below)
The problem I suppose is, that rsync has to run as a deamon on the
server as well. Is this correct?
Without administrator rights i guess it's impossible for me to use
rsync, isn't it?

Thank you for your help,
   Bernd

here are my tries:
=== UNISON Tries ====
>unison c:/tst/ ssh://abc.at//home/aaa/Test -sshversion 2
Contacting server...
warning: Authentication failed.
Disconnected; no more authentication methods available (No further
authenticatio
n methods available.).
Fatal error: Lost connection with the server

===
C:>unison c:/tst/ ssh://abc.at//hone/aaa/Test -
sshversion 2 -oallowedauthentications=keyboard-interactive

unison: unknown option `-oallowedauthentications'.

=== RSYNC tries ====

C:\rsync>rsync --rsh="ssh2
-oallowedauthentications=keyboard-interactive" -av *
  aaa@abc:/tst
Keyboard-interactive:
Password:
Keyboard-interactive:
bash: line 1: rsync: command not found
rsync: read error: Connection reset by peer
rsync error: error in rsync protocol data stream (code 12) at io.c(151)
===

C:\rsync>rsync --rsh="ssh2
-oallowedauthentications=keyboard-interactive -d 2" -av *
  aaa@abc:/tst
debug: Connecting to fslgdqx01.tu-graz.ac.at, port 22... (SOCKS not used)
debug: Ssh2/ssh2.c:2297: Entering event loop.
debug: Ssh2Client/sshclient.c:1421: Creating transport protocol.
debug: SshAuthMethodClient/sshauthmethodc.c:85: Added
"keyboard-interactive" to
usable methods.
debug: Ssh2Client/sshclient.c:1462: Creating userauth protocol.
debug: client supports 1 auth methods: 'keyboard-interactive'
debug: Ssh2Common/sshcommon.c:530: local ip = 129.27.113.23, local port
= 2361
debug: Ssh2Common/sshcommon.c:532: remote ip = 129.27.113.6, remote port
= 22
debug: SshConnection/sshconn.c:1945: Wrapping...
debug: Remote version: SSH-1.99-OpenSSH_3.8p1
debug: OpenSSH: Major: 3 Minor: 8 Revision: 0
debug: Ssh2Transport/trcommon.c:1518: All versions of OpenSSH handle kex
guesses
  incorrectly.
debug: Ssh2Transport/trcommon.c:1901: lang s to c: `', lang c to s: `'
debug: Ssh2Transport/trcommon.c:1967: c_to_s: cipher 3des-cbc, mac
hmac-sha1, co
mpression none
debug: Ssh2Transport/trcommon.c:1970: s_to_c: cipher 3des-cbc, mac
hmac-sha1, co
mpression none
debug: Remote host key found from database.
debug: Ssh2Common/sshcommon.c:331: Received SSH_CROSS_STARTUP packet
from connec
tion protocol.
debug: Ssh2Common/sshcommon.c:381: Received SSH_CROSS_ALGORITHMS packet
from con
nection protocol.
debug: server offers auth methods 'publickey,keyboard-interactive'.
Keyboard-interactive:
Password:
debug: Ssh2AuthKbdInteractiveClient/authc-kbd-interactive.c:244: Sending
respons
e packet.
Keyboard-interactive:
debug: Ssh2AuthKbdInteractiveClient/authc-kbd-interactive.c:244: Sending
respons
e packet.
debug: Ssh2Common/sshcommon.c:299: Received SSH_CROSS_AUTHENTICATED
packet from
connection protocol.
debug: Ssh2Common/sshcommon.c:840: num_channels now 1
debug: SshConnection/sshconn.c:406: EOF from channel stream
bash: line 1: rsync: command not found
debug: Ssh2ChannelSession/sshchsession.c:1923: received exit status : 127
debug: Ssh2Common/sshcommon.c:807: num_channels now 0
debug: Got session close with exit_status=127
debug: destroying client struct...
debug: Ssh2Client/sshclient.c:1497: Destroying client.
debug: SshConfig/sshconfig.c:2313: Freeing pki. (host_pki != NULL,
user_pki = NU
LL)
debug: SshConnection/sshconn.c:1997: Destroying SshConn object.
rsync: read error: Connection reset by peer
rsync error: error in rsync protocol data stream (code 12) at io.c(151)

===

Andrew Schulman wrote:
>>I'm using Win XP and SSH 3.2.0 to etablish a SSH2 connection to a
>>server. Everything works fine.
>>
>>I wonder if there is an XP-tool that you can establish an
>>network drive in XP which uses the ssh2 protocol. So that i can access
>>the files on the server direct from any windows program using the
>>open/save command.
>
>
> Not directly, that I'm aware of. You can tunnel 139/tcp via ssh, and then
> try to set up a network drive against localhost. But I never had any
> success with that approach.
>
> In the end, a lot of people give up on this idea and go with a better one:
> work locally, then synchronize your files with the server using Unison
> (http://www.cis.upenn.edu/~bcpierce/unison/). This approach has important
> advantages. Unison will use ssh as its network transport for secure
> transfers, but it's much more bandwidth-efficient. If you have a remotely
> mounted share drive, any time you save a file the whole file has to travel
> across the network. But saving to your local hard drive is fast, and then
> Unison uses the rsync algorithm to transfer just the changed parts of
> files.
>
> Good luck,
> Andrew.
>



Relevant Pages

  • Rsync problem
    ... In our Institut i was able to use rsync with ssh for backup my data from PC to linux server. ... debug: SshAuthMethodClient/sshauthmethodc.c:85: Added "keyboard-interactive" to ...
    (comp.security.ssh)
  • Gesucht - Virensoftware die funktioniert
    ... Server specifications ... - winmsd output from the OSCE server ... To turn on the server debug program: ... Setting window appears 3. select the Enable debug log check box. ...
    (microsoft.public.de.german.exchange2000.general)
  • Re: ssh as non-root user
    ... The server is reporting the following to the client: ... server offers auth methods ''. ... debug: ... Unauthorized access or use of this computer system may subject violators to ...
    (SSH)
  • Re: hostbased auth between commercial and OpenSSH
    ... The server just rejects hostbased from OpenSSH client saying method is ... Client side debug snippet (I've got hostbased as only ... client user 'myusername', server user 'myusername', ...
    (comp.security.ssh)
  • SSH Debugging <-- compatibility
    ... Connecting to server, port 22... ... debug: Ssh2/ssh2.c:1956/main: Entering event loop. ... SSH_CROSS_ALGORITHMS packet from connection protocol. ... This is an evaluation version of the SSH Secure Shell Windows Server. ...
    (comp.security.ssh)