Re: possible? ssh-connection as XP- network connection
From: Bernd Breitschaedel (berndb_at_sbox.tugraz.at)
Date: 06/30/05
- Next message: Jacob Nevins: "Re: possible? ssh-connection as XP- network connection"
- Previous message: Yannick ROGER: "tunelling ssh"
- Next in thread: Jacob Nevins: "Re: possible? ssh-connection as XP- network connection"
- Maybe reply: Jacob Nevins: "Re: possible? ssh-connection as XP- network connection"
- Reply: Richard E. Silverman: "Re: possible? ssh-connection as XP- network connection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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.
>
- Next message: Jacob Nevins: "Re: possible? ssh-connection as XP- network connection"
- Previous message: Yannick ROGER: "tunelling ssh"
- Next in thread: Jacob Nevins: "Re: possible? ssh-connection as XP- network connection"
- Maybe reply: Jacob Nevins: "Re: possible? ssh-connection as XP- network connection"
- Reply: Richard E. Silverman: "Re: possible? ssh-connection as XP- network connection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|