public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* problems with ssh
@ 2001-05-03 15:36 nc0ded
  2001-05-04  1:11 ` Corinna Vinschen
  0 siblings, 1 reply; 10+ messages in thread
From: nc0ded @ 2001-05-03 15:36 UTC (permalink / raw)
  To: cygwin

----- Begin Hush Signed Message from nc0ded@hushmail.com -----

HI-
cygwin is really useful. good job. 
but i am having a problem i haven't found adeqate help in the archives.
i can ssh fine, and figured out how to use dump over ssh (to dump some linux 
boxxen
to a Win2k backupserver) (once you ln -s /sbin/rmt.exe /etc/rmt  ;-P)
but it hangs after 40k exactly each time.
uname -a
CYGWIN_NT-5.0 1.1.8(0.34/3/2) 2001-01-31 10:08 i686 unknown
now, scp suffers a maybe similiar problem
after prompting for username@hostname password, i get 
debug: Ssh2Common/sshcommon.c:274/ssh_common_special: Received SSH_CROSS_AUTHENTICATED 
packet from connection protocol.
scp:Scp2/scp2.c:1443/new_stream_callback: notification: 0
scp:SshFCTransfer/sshfc_transfer.c:1670/transfer_stat_before_rm_cb: No connection 
yet. Waiting...
debug: Ssh2Common/sshcommon.c:704/ssh_common_new_channel: num_channels now 
1
debug: SshTtyFlags/sshttyflags.c:294/ssh_internal_encode_tty_flags: Not 
a tty. (fd = 0)
debug: Ssh2ChannelSession/sshchsession.c:1807/ssh_channel_start_session_completion2: 
starting session failed: result 0
scp:SshFCTransfer/sshfc_transfer.c:1670/transfer_stat_before_rm_cb: No connection 
yet. Waiting...

just hangs. i have CYGWIN=ntsec tty .help!

Thanks

nc0ded@hushmail.com


----- Begin Hush Signature v1.3 -----
DrFzdng7dR8eT6qLwuHNys/2gUtawNrpI1qTWMZe8KnOVX/xuPz5cqs5aiv6cgU9g/rS
guo7PtImD/g3OYvwbkjYiTUW+j6VKMiAo62j2Is/XA4IoQunPrkKYY3vh+dOw/x66XZj
UezhQ5qbkyOlfR6cakGT0qNNtPAXNJLMuW+s+wFEWxIDe/tWdpVmKkvRbvX1VY//9ttE
I8Xtk9VoZdBWrZ/JPQWzLeYTo0m7xd2+3ccM7fGzfQUTwjsN9G+VTTOktjSubTu3WxYt
OD3eNC3rdwCCFmvd9bXdIDs4pp8muTzCiQlLBJSeafgWn4AHkLkeFWukBXubJkuB8mGM
swT6z0H6vLOGyd4PYK5/xQouSfwcKZWmf5Cd1IRQBbpQuXhxZif2mGWkx84xGDqrJAY/
Mjf0T7QnzrXvBlAc9tP4BbaIHIXsQHMPXf06Te35xOwtHgdHQVKjGIJYGFqRBc2rN9Px
NTrgDepkm0NQNuESzLqeiuJxEpMrxfP6FJYBs5560/Wy
----- End Hush Signature v1.3 -----


This message has been signed with a Hush Digital Signature. 
To verify the signature, please go to www.hush.com/tools


Free, encrypted, secure Web-based email at www.hushmail.com

^ permalink raw reply	[flat|nested] 10+ messages in thread
* problems with ssh
@ 2003-04-09 18:27 Rob Siklos
  2003-04-09 18:29 ` Vince Hoffman
  0 siblings, 1 reply; 10+ messages in thread
From: Rob Siklos @ 2003-04-09 18:27 UTC (permalink / raw)
  To: cygwin

Hello,

I am using the latest cygwin modules from the installer.  I have had cygwin
set up and working nicely for some time now, but today i just noticed that
sshd wasn't working anymore.

Originally, I had it set up so that sshd ran under inetd (by uncommenting
the line in inetd.conf).  When it's set up this way, I always get
"Permission Denied" after I enter my password.  I'm pretty sure the user
system is set up correctly, since I can log in using telnet without any
problems.

I tried running sshd as an independant service, however I can't get the
service to start.  I get the following in the log:

--- BEGIN /var/log/sshd.log ---
Could not load host key: /etc/ssh_host_key
Could not load host key: /etc/ssh_host_rsa_key
Could not load host key: /etc/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.
--- END /var/log/sshd.log ---

I reinstalled cygwin and re-generated the host keys, but it still doesn't
work.  The files DO exist, and have the following permissions:
-rw-------    1 rsiklos  Administ      672 Apr  9 12:36 ssh_host_dsa_key
-rw-------    1 rsiklos  Administ      529 Apr  9 12:35 ssh_host_key
-rw-------    1 rsiklos  Administ      887 Apr  9 12:35 ssh_host_rsa_key

Does anyone have any ideas or advice?

Thanks in advance,

Rob.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: problems with ssh
@ 1998-02-11 17:25 raf
  0 siblings, 0 replies; 10+ messages in thread
From: raf @ 1998-02-11 17:25 UTC (permalink / raw)
  To: gnu-win32

>I am trying to use ssh, but there are some problems I just can't cope with.
>I have used the b-18 usertools.exe to create a basic environment. Than I
>tar xvzf coolview in /TEMP. And ssh-1.2.21.win.bin.tar.gz in /
>I made /etc/passwd and /etc/group with mkpasswd -l and mkgroups -l.
>All the below I tried with every settings of PATH, /TEMP, /bin and
>/usr/local/bin being in every order, every two of them and every one of
>them, /bin beeing symlink once to /gnuwin32/..../bin, a copy in the other
>time.
>When I tried ssh, it told me that I don't have controlling tty or DISPLAY.
>I have tried 3 things:
>-the output of 'tty' told me that I'm on /dev/conin so I
>mount \\\\.\\con: /dev/conin
>mount \\\\.\\con: /dev/conout
>mount \\\\.\\con: /dev/console
>No way.
>-I have tried to set DISPLAY to a nearby X terminal. I have managed to ru=
>n
>ssh-askpass alone, but ssh either didn't find random or getgroups in the
>cygwin.dll. Setting LD_PRELOAD to the other instance didn't help. Is ther=
>e a
>DISPLAY setting which actually uses the NT's own display without having t=
>o
>run an X server on it? I recall I've seen such a libX11 somewhere long ag=
>o.
>-I have tried to use an identity file. ssh told me that it can't open it,
>because permission denied. When I wanted to set the permissions with chow=
>n,
>they continued to be 755, despite anything I tried.

>PLEASE, anyone who could manage to actually use ssh tell me how to do tha=
>t,
>starting with a fresh NT 4.0 workstation or win95.

>Thank you in advance.

i've had same problem. this is what i know about it.

the 'mount con /dev/tty' works for some and not others.
to fix this, you could apply this patch.

diff -ur ssh-1.2.21/readpass.c ssh-1.2.21.stdin/readpass.c
--- ssh-1.2.21/readpass.c       Fri Aug 22 10:28:32 1997
+++ ssh-1.2.21.stdin/readpass.c Thu Feb 12 12:21:11 1998
@@ -96,6 +96,7 @@
   UserFile uf;
   int i;
   
+  from_stdin = 1;
   if (from_stdin)
     f = stdin;
   else

this prevents it from trying to use /dev/tty or $DISPLAY altogether.

as for using $DISPLAY, it seems that one program can spawn()
another which can then open $DISPLAY but if one program fork/exec()s
another, that program won't be able to open $DISPLAY.

raf
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 10+ messages in thread
* problems with ssh
@ 1998-02-10 10:01 Magosanyi Arpad
  1998-02-11 17:42 ` Michael Hirmke
  1998-02-12  7:54 ` Tralla
  0 siblings, 2 replies; 10+ messages in thread
From: Magosanyi Arpad @ 1998-02-10 10:01 UTC (permalink / raw)
  To: gnu-win32

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1666 bytes --]

Hi!

I am trying to use ssh, but there are some problems I just can't cope with.
I have used the b-18 usertools.exe to create a basic environment. Than I
tar xvzf coolview in /TEMP. And ssh-1.2.21.win.bin.tar.gz in /
I made /etc/passwd and /etc/group with mkpasswd -l and mkgroups -l.
All the below I tried with every settings of PATH, /TEMP, /bin and
/usr/local/bin being in every order, every two of them and every one of
them, /bin beeing symlink once to /gnuwin32/..../bin, a copy in the other
time.
When I tried ssh, it told me that I don't have controlling tty or DISPLAY.
I have tried 3 things:
-the output of 'tty' told me that I'm on /dev/conin so I
mount \\\\.\\con: /dev/conin
mount \\\\.\\con: /dev/conout
mount \\\\.\\con: /dev/console
No way.
-I have tried to set DISPLAY to a nearby X terminal. I have managed to run
ssh-askpass alone, but ssh either didn't find random or getgroups in the
cygwin.dll. Setting LD_PRELOAD to the other instance didn't help. Is there a
DISPLAY setting which actually uses the NT's own display without having to
run an X server on it? I recall I've seen such a libX11 somewhere long ago.
-I have tried to use an identity file. ssh told me that it can't open it,
because permission denied. When I wanted to set the permissions with chown,
they continued to be 755, despite anything I tried.

PLEASE, anyone who could manage to actually use ssh tell me how to do that,
starting with a fresh NT 4.0 workstation or win95.

Thank you in advance.

---
GNU GPL: csak tiszta forrásból
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-04-09 17:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-03 15:36 problems with ssh nc0ded
2001-05-04  1:11 ` Corinna Vinschen
  -- strict thread matches above, loose matches on Subject: below --
2003-04-09 18:27 Rob Siklos
2003-04-09 18:29 ` Vince Hoffman
2003-04-09 18:44   ` Rob Siklos
1998-02-11 17:25 raf
1998-02-10 10:01 Magosanyi Arpad
1998-02-11 17:42 ` Michael Hirmke
1998-02-12  8:16   ` Magosanyi Arpad
1998-02-12  7:54 ` Tralla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).