<rss version="2.0">
<channel>
<title>comp.security.ssh :: SSH secure remote login and tunneling tools</title>
<link>http://www.nnseek.com/e/comp.security.ssh/</link>
<description>Posts for comp.security.ssh</description>
<lastBuildDate>Wed, 27 Aug 2008 12:33:46 PDT</lastBuildDate>
  <image>
    <title>http://www.nnseek.com/</title>
    <link>http://www.nnseek.com/</link>
    <url>http://www.nnseek.com/img/64.png</url>
    <width>64</width>
    <height>64</height>
    <description>NNSeek</description>
  </image>
<item>
	<title><![CDATA[Inconsistent status from OpenSSH with redirected input]]></title>
	<guid>http://www.nnseek.com/e/comp.security.ssh/inconsistent_status_from_openssh_with_redirected_i_137055046t.html</guid>
	<link>http://www.nnseek.com/e/comp.security.ssh/inconsistent_status_from_openssh_with_redirected_i_137055046t.html</link>
	<description><![CDATA[I first saw this on an OpenSSH 4.2 installation, so we pulled down 5.1p1<br>and see the same thing.  On linux hosts, the status will be 255<br>sometimes if it has stdin redirected to /dev/null.  But only the status<br>is wrong.  The connection is working and all the data comes back.<br><br>$ /usr/local/bin/ssh testg5 perl -v < /dev/null > /dev/null ; echo $?<br>0<br>$ /usr/local/bin/ssh testg5 perl -v < /dev/null > /dev/null ; echo $?<br>255<br>$ /usr/local/bin/ssh testg5 perl -v < /dev/null > /dev/null ; echo $?<br>0<br>$ /usr/local/bin/ssh testg5 perl -v < /dev/null > /dev/null ; echo $?<br>255<br>$ /usr/local/bin/ssh testg5 perl -v < /dev/null > /dev/null ; echo $?<br>255<br><br>Just on a lark I tried adding '-n' to the ssh line.  It didn't make any<br>difference.  If I don't redirect STDIN, then I get status 0 every<br>single time.<br><br>This is causing an automated testing framework to think that the ssh<br>connection has failed, when it's just fine.<br><br>If I capture a -vvv output from a "good" and "failed" connection,<br>there's very little difference.<br><br>diff /tmp/ssherr*<br>41a42<br>> debug1: client_input_channel_req: channel 0 rtype exit-status reply 0<br>48c49<br>< debug1: Exit status -1<br>---<br>> debug1: Exit status 0<br><br>Any ideas about what is happening here or more usefully, how I can fix<br>this?  The framework I have will always redirect STDIN.  I can't rewrite<br>it to avoid that bit.<br><br>Thanks for any help!!<br><br>-- <br>Darren<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.security.ssh/">comp.security.ssh</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.security.ssh/inconsistent_status_from_openssh_with_redirected_i_137055046t.html">no comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.security.ssh/inconsistent_status_from_openssh_with_redirected_i_137055046m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Wed, 27 Aug 2008 12:33:46 PDT</pubDate>
</item>
<item>
	<title><![CDATA[ForceCommand: starting a shell]]></title>
	<guid>http://www.nnseek.com/e/comp.security.ssh/forcecommand_starting_a_shell_136844870t.html</guid>
	<link>http://www.nnseek.com/e/comp.security.ssh/forcecommand_starting_a_shell_136844870t.html</link>
	<description><![CDATA[Hi,<br><br>I want to configure SSH to run "ForceCommand", and base on some<br>configuration and if SSH_ORIGINAL_COMMAND = "" (shell), start a shell.<br><br>What I found: starting ksh works, but /etc/profile is not loaded. I<br>can manually . /etc/profile, but then the $<a href="http://HOME/.profile" rel="nofollow" class="url" target="_blank">HOME/.profile</a> is not<br>started. I can add this one too, but what other things do I missed?<br><br>And this would work IF the shell is ksh (AIX), what if the shell is<br>csh, or bash? What I would like is to "pass" to shell (normal<br>behavior) after the script test some stuff.<br><br>My goal: use comment in the the gecos of the user that "defines" what<br>type of user. Depending of the "definition" (batch user, interactive<br>user, etc), he can or he cannot do shell, sftp, etc.<br><br>The other way would be to use "Match" directive, but that would imply<br>managing groups for users, which is a "big task" (decentralized<br>security rigth now). gecos comment is already in place.<br><br>Any help appreciated.<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.security.ssh/">comp.security.ssh</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.security.ssh/forcecommand_starting_a_shell_136844870t.html"><b>1</b> Comment</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.security.ssh/forcecommand_starting_a_shell_136844870m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Tue, 26 Aug 2008 11:11:19 PDT</pubDate>
</item>
<item>
	<title><![CDATA[udp port forwarding]]></title>
	<guid>http://www.nnseek.com/e/comp.security.ssh/udp_port_forwarding_136251974t.html</guid>
	<link>http://www.nnseek.com/e/comp.security.ssh/udp_port_forwarding_136251974t.html</link>
	<description><![CDATA[Is udp port forwarding possible with openssh 4.5? If so how? I can't<br>find any reference to it on the man page. Thanks.<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.security.ssh/">comp.security.ssh</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.security.ssh/udp_port_forwarding_136251974t.html"><b>2</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.security.ssh/udp_port_forwarding_136251974m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Thu, 21 Aug 2008 09:49:15 PDT</pubDate>
</item>
<item>
	<title><![CDATA[PUTTY on Windows 2003 and VMWare ESX virtual machines]]></title>
	<guid>http://www.nnseek.com/e/comp.security.ssh/putty_on_windows_2003_and_vmware_esx_virtual_machi_136209734t.html</guid>
	<link>http://www.nnseek.com/e/comp.security.ssh/putty_on_windows_2003_and_vmware_esx_virtual_machi_136209734t.html</link>
	<description><![CDATA[Does anyone have experience of running Putty on a Windows 2003 server,<br>as according to the site <a href="http://www.putty.org" rel="nofollow" class="url" target="_blank">www.putty.org</a> there is no version available<br>for Windows 2003 server.<br><br>Also, does anyone have experience of running Putty in a virtual<br>server, such as a guest on a VMWare ESX host?<br><br>Many thanks<br><br>Surfboy1971<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.security.ssh/">comp.security.ssh</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.security.ssh/putty_on_windows_2003_and_vmware_esx_virtual_machi_136209734t.html"><b>3</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.security.ssh/putty_on_windows_2003_and_vmware_esx_virtual_machi_136209734m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Thu, 21 Aug 2008 03:30:42 PDT</pubDate>
</item>
<item>
	<title><![CDATA[PuTTY - starting from command line with logging enabled]]></title>
	<guid>http://www.nnseek.com/e/comp.security.ssh/putty_starting_from_command_line_with_logging_enab_136062790t.html</guid>
	<link>http://www.nnseek.com/e/comp.security.ssh/putty_starting_from_command_line_with_logging_enab_136062790t.html</link>
	<description><![CDATA[I am in a 100+ unix server environment, and due to some security<br>requirements, instead of using my master administration server as a<br>jumpboard, now I have to launch separate sessions to each of these<br>servers when I need to login. I am quite sufficient in unix<br>environment and do whatever I wish to do but when it comes to windows,<br>writing batch files is harder than pulling teeth.<br><br>Now, my requirement is, when I launch an ssh session, I want it to<br>start with logging enabled, but I do not want to go and manually<br>create 100+ sessions (number expanding weekly, if not daily) and mark<br>each session with logging enabled. This is not something feasible for<br>me.  I read thru the PuTTY manual but did not see any command line<br>switch to accomplish this. I need to save my last, say 50, sessions<br>screen input and output to any server I go into, on my local machine.<br>I was hoping to write a batch file which will accept the server name<br>as a command line argument and create a new log file with datestamp<br>being part of the filename as well as the server name.<br><br>I thought of using AutoHotKey to send a series of keystrokes to the<br>terminal window to open up the context menu (drop down from upper left<br>corner) but could not figure out if there is a way to drop it down<br>with a key stroke. I tried, many combinations of win-alt-ctrl-shift<br>with any alphabetical and numerical keys but was not able to drop down<br>the context menu.<br><br>If anyone was able to accomplish this before, I really would like to<br>hear how you did it.<br><br>Thanks in advance.<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.security.ssh/">comp.security.ssh</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.security.ssh/putty_starting_from_command_line_with_logging_enab_136062790t.html"><b>9</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.security.ssh/putty_starting_from_command_line_with_logging_enab_136062790m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Wed, 20 Aug 2008 07:56:47 PDT</pubDate>
</item>
<item>
	<title><![CDATA[comp.os.xinu disaster]]></title>
	<guid>http://www.nnseek.com/e/comp.security.ssh/comp_os_xinu_disaster_135317062t.html</guid>
	<link>http://www.nnseek.com/e/comp.security.ssh/comp_os_xinu_disaster_135317062t.html</link>
	<description><![CDATA[<br><a href="http://fox.googlebong.com" rel="nofollow" class="url" target="_blank">http://fox.googlebong.com</a><br><br><br>Anastasia Gatrell GoogleBong<br><br><br><br><br><br><br>  img { border: 2px solid Black }<br><br>  pre { font: 6pt/8pt }<br><br>  p,blockquote { font: 16pt; font-family: verdana, arial, 'sans serif' }<br><br>  h1,h2,h3,h4,ul { font-family: verdana, arial, 'sans serif'; font: 14p }<br><br>  table,li,td { font-family: verdana, arial, 'sans serif'; font: 12p }<br><br>  ul { list-style: disc }<br><br>  ol { list-style: decimal }<br><br>  body { background: "#EEEEEE" }<br><br>  h1,h2,h3,h4,hr,p,ul,blockquote,pre { color:Black }<br><br>  a:link    { color:Blue }<br><br>  a:visited { color:Blue }<br><br>  a:active  { color:"#008000" }<br><br>  a:hover   { color:"#008000" }<br><br>  h1.header { padding:0em; margin:0 }<br><br>  <a href="http://div.container" rel="nofollow" class="url" target="_blank">div.container</a> { width:100%%; margin:0px; border:1px solid Black; line-height:150%% }<br><br>  div.header,div.footer { padding:0.5em; color:white; background-color:Black; clear:left }<br><br>  div.left { width:15%%; margin:0; float:left; padding:0; }<br><br>  div.right { width:15%%; left:85%%; margin:0; border:1px solid Black; float:right; padding:1em }<br><br>  <a href="http://div.content" rel="nofollow" class="url" target="_blank">div.content</a> { width:70%%; left:15%%; margin:3em; padding:3em }<br><br><br><br><br><br>  <br>  <br>    <br>    <br>    <br>    <br>  <br>  <br><br><br><br><br><br><br><br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.security.ssh/">comp.security.ssh</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.security.ssh/comp_os_xinu_disaster_135317062t.html">no comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.security.ssh/comp_os_xinu_disaster_135317062m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Thu, 14 Aug 2008 14:42:17 PDT</pubDate>
</item>
<item>
	<title><![CDATA[SFTP Login problems...]]></title>
	<guid>http://www.nnseek.com/e/comp.security.ssh/sftp_login_problems_135100486t.html</guid>
	<link>http://www.nnseek.com/e/comp.security.ssh/sftp_login_problems_135100486t.html</link>
	<description><![CDATA[Having some issues connecting to an SFTP server with SFTP... but NOT<br>SSH....<br>Im pretty stumped, I've been looking into this for quite some time<br>now.  Here is output of and SFTP connection:<br><br>[IP address's X'd out.]<br>-----------------------<br>$ sftp -vvv lsbc@xxx.xxx.xxx.xxx -oPort=2222<br>Connecting to xxx.xxx.xxx.xxx...<br>OpenSSH_4.6p1 Debian-5ubuntu0.5, OpenSSL <a href="http://0.9.8e" rel="nofollow" class="url" target="_blank">0.9.8e</a> 23 Feb 2007<br>debug1: Reading configuration data /etc/ssh/ssh_config<br>debug1: Applying options for *<br>debug2: ssh_connect: needpriv 0<br>debug1: Connecting to xxx.xxx.xxx.xxx [xxx.xxx.xxx.xxx] port 22.<br>debug1: Connection established.<br>debug3: Not a RSA1 key file /home/elanops/.ssh/id_rsa.<br>debug2: key_type_from_name: unknown key type '-----BEGIN'<br>debug3: key_read: missing keytype<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug2: key_type_from_name: unknown key type '-----END'<br>debug3: key_read: missing keytype<br>debug1: identity file /home/elanops/.ssh/id_rsa type 1<br>debug1: identity file /home/elanops/.ssh/id_dsa type -1<br>ssh_exchange_identification: Connection closed by remote host<br>Couldn't read packet: Connection reset by peer<br>-----------------------<br><br><br>Well thats swell, isn't it?  Now for SSH:<br><br>------------------------<br>~$ ssh -vvv lsbc@xxx.xxx.xxx.xxx -oPort=2222<br>OpenSSH_4.6p1 Debian-5ubuntu0.5, OpenSSL <a href="http://0.9.8e" rel="nofollow" class="url" target="_blank">0.9.8e</a> 23 Feb 2007<br>debug1: Reading configuration data /etc/ssh/ssh_config<br>debug1: Applying options for *<br>debug2: ssh_connect: needpriv 0<br>debug1: Connecting to xxx.xxx.xxx.xxx [xxx.xxx.xxx.xxx] port 2222.<br>debug1: Connection established.<br>debug1: identity file /home/elanops/.ssh/identity type -1<br>debug3: Not a RSA1 key file /home/elanops/.ssh/id_rsa.<br>debug2: key_type_from_name: unknown key type '-----BEGIN'<br>debug3: key_read: missing keytype<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug3: key_read: missing whitespace<br>debug2: key_type_from_name: unknown key type '-----END'<br>debug3: key_read: missing keytype<br>debug1: identity file /home/elanops/.ssh/id_rsa type 1<br>debug1: identity file /home/elanops/.ssh/id_dsa type -1<br>debug1: Remote protocol version 2.0, remote software version<br>OpenSSH_4.7p1 Debian-8ubuntu1<br>debug1: match: OpenSSH_4.7p1 Debian-8ubuntu1 pat OpenSSH*<br>debug1: Enabling compatibility mode for protocol 2.0<br>debug1: Local version string SSH-2.0-OpenSSH_4.6p1 Debian-5ubuntu0.5<br>debug2: fd 3 setting O_NONBLOCK<br>debug1: SSH2_MSG_KEXINIT sent<br>debug1: SSH2_MSG_KEXINIT received<br>debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-<br>hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-<br>group1-sha1<br>debug2: kex_parse_kexinit: ssh-rsa,ssh-dss<br>debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-<br>cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-<br>cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr<br>debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-<br>cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-<br>cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr<br>debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-<br>ripemd160@<a href="http://openssh.com,hmac-sha1-96,hmac-md5-96" rel="nofollow" class="url" target="_blank">openssh.com,hmac-sha1-96,hmac-md5-96</a><br>debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-<br>ripemd160@<a href="http://openssh.com,hmac-sha1-96,hmac-md5-96" rel="nofollow" class="url" target="_blank">openssh.com,hmac-sha1-96,hmac-md5-96</a><br>debug2: kex_parse_kexinit: none,zlib@<a href="http://openssh.com,zlib" rel="nofollow" class="url" target="_blank">openssh.com,zlib</a><br>debug2: kex_parse_kexinit: none,zlib@<a href="http://openssh.com,zlib" rel="nofollow" class="url" target="_blank">openssh.com,zlib</a><br>debug2: kex_parse_kexinit:<br>debug2: kex_parse_kexinit:<br>debug2: kex_parse_kexinit: first_kex_follows 0<br>debug2: kex_parse_kexinit: reserved 0<br>debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-<br>hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-<br>group1-sha1<br>debug2: kex_parse_kexinit: ssh-rsa,ssh-dss<br>debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-<br>cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-<br>cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr<br>debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-<br>cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-<br>cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr<br>debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@<a href="http://openssh.com,hmac" rel="nofollow" class="url" target="_blank">openssh.com,hmac</a>-<br>ripemd160,hmac-ripemd160@<a href="http://openssh.com,hmac-sha1-96,hmac-md5-96" rel="nofollow" class="url" target="_blank">openssh.com,hmac-sha1-96,hmac-md5-96</a><br>debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@<a href="http://openssh.com,hmac" rel="nofollow" class="url" target="_blank">openssh.com,hmac</a>-<br>ripemd160,hmac-ripemd160@<a href="http://openssh.com,hmac-sha1-96,hmac-md5-96" rel="nofollow" class="url" target="_blank">openssh.com,hmac-sha1-96,hmac-md5-96</a><br>debug2: kex_parse_kexinit: none,zlib@<a href="http://openssh.com" rel="nofollow" class="url" target="_blank">openssh.com</a><br>debug2: kex_parse_kexinit: none,zlib@<a href="http://openssh.com" rel="nofollow" class="url" target="_blank">openssh.com</a><br>debug2: kex_parse_kexinit:<br>debug2: kex_parse_kexinit:<br>debug2: kex_parse_kexinit: first_kex_follows 0<br>debug2: kex_parse_kexinit: reserved 0<br>debug2: mac_init: found hmac-md5<br>debug1: kex: server->client aes128-cbc hmac-md5 none<br>debug2: mac_init: found hmac-md5<br>debug1: kex: client->server aes128-cbc hmac-md5 none<br>debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent<br>debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP<br>debug2: dh_gen_key: priv key bits set: 137/256<br>debug2: bits set: 503/1024<br>debug1: SSH2_MSG_KEX_DH_GEX_INIT sent<br>debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY<br>debug3: put_host_port: [xxx.xxx.xxx.xxx]:2222<br>debug3: put_host_port: [xxx.xxx.xxx.xxx]:2222<br>debug3: check_host_in_hostfile: filename /home/elanops/.ssh/<br>known_hosts<br>debug3: check_host_in_hostfile: match line 1<br>debug3: check_host_in_hostfile: filename /home/elanops/.ssh/<br>known_hosts<br>debug3: check_host_in_hostfile: match line 1<br>debug1: Host '[xxx.xxx.xxx.xxx]:2222' is known and matches the RSA<br>host key.<br>debug1: Found key in /home/elanops/.ssh/known_hosts:1<br>debug2: bits set: 511/1024<br>debug1: ssh_rsa_verify: signature correct<br>debug2: kex_derive_keys<br>debug2: set_newkeys: mode 1<br>debug1: SSH2_MSG_NEWKEYS sent<br>debug1: expecting SSH2_MSG_NEWKEYS<br>debug2: set_newkeys: mode 0<br>debug1: SSH2_MSG_NEWKEYS received<br>debug1: SSH2_MSG_SERVICE_REQUEST sent<br>debug2: service_accept: ssh-userauth<br>debug1: SSH2_MSG_SERVICE_ACCEPT received<br>debug2: key: /home/elanops/.ssh/identity ((nil))<br>debug2: key: /home/elanops/.ssh/id_rsa (0x800585d8)<br>debug2: key: /home/elanops/.ssh/id_dsa ((nil))<br>debug1: Authentications that can continue: publickey,password<br>debug3: start over, passed a different list publickey,password<br>debug3: preferred gssapi-keyex,gssapi-with-<br>mic,gssapi,publickey,keyboard-interactive,password<br>debug3: authmethod_lookup publickey<br>debug3: remaining preferred: keyboard-interactive,password<br>debug3: authmethod_is_enabled publickey<br>debug1: Next authentication method: publickey<br>debug1: Trying private key: /home/elanops/.ssh/identity<br>debug3: no such identity: /home/elanops/.ssh/identity<br>debug1: Offering public key: /home/elanops/.ssh/id_rsa<br>debug3: send_pubkey_test<br>debug2: we sent a publickey packet, wait for reply<br>debug1: Authentications that can continue: publickey,password<br>debug1: Trying private key: /home/elanops/.ssh/id_dsa<br>debug3: no such identity: /home/elanops/.ssh/id_dsa<br>debug2: we did not send a packet, disable method<br>debug3: authmethod_lookup password<br>debug3: remaining preferred: ,password<br>debug3: authmethod_is_enabled password<br>debug1: Next authentication method: password<br>lsbc@xxx.xxx.xxx.xxx's password:<br>----------------------------------<br><br>What would I try next, to resolve this issue?<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.security.ssh/">comp.security.ssh</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.security.ssh/sftp_login_problems_135100486t.html">no comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.security.ssh/sftp_login_problems_135100486m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Wed, 13 Aug 2008 14:49:42 PDT</pubDate>
</item>
<item>
	<title><![CDATA[sshfs to a machine but ls fail with Permission denied]]></title>
	<guid>http://www.nnseek.com/e/comp.security.ssh/sshfs_to_a_machine_but_ls_fail_with_permission_den_135064390t.html</guid>
	<link>http://www.nnseek.com/e/comp.security.ssh/sshfs_to_a_machine_but_ls_fail_with_permission_den_135064390t.html</link>
	<description><![CDATA[I can ssh to a machine as a non-root user and run the "ls" command.<br>I can sshfs to the same machine as a non-root user but "ls" fail with<br>"Permission denied".<br>Please help to fix this problem.<br><br>twong@local$ sudo sshfs -o idmap=user remote: /home/twong/remote<br>root@remote's password:<br>;sshfs successfully.<br><br>twong@local$ ls -l /home/twong/remote<br>ls: /home/twong/remote: Permission denied<br><br>root@local#ls -l /home/twong/remote<br>;...<br>files in the /root directory of remote can be listed correctly by root<br>at local.<br><br>twong@local$ sudo sshfs -o idmap=user remote:/home/twong /home/twong/<br>remote<br>root@remote's password:<br>twong@local$ ls -l /home/twong/remote<br>ls: /home/twong/remote: Permission denied<br><br>root@local#ls -l /home/twong/remote<br>;...<br>drwxrwxr-x 1 505 505     4096 Apr 24 17:39 bin<br>files in the /home/twong directory of remote can be listed by root at<br>local but the id is not twong.<br><br>local machine OS is FC6.<br>remote OS is RH7.2.<br><br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.security.ssh/">comp.security.ssh</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.security.ssh/sshfs_to_a_machine_but_ls_fail_with_permission_den_135064390t.html"><b>6</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.security.ssh/sshfs_to_a_machine_but_ls_fail_with_permission_den_135064390m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Wed, 13 Aug 2008 07:14:26 PDT</pubDate>
</item>
<item>
	<title><![CDATA[Chrooted SFTP &amp; logging problems]]></title>
	<guid>http://www.nnseek.com/e/comp.security.ssh/chrooted_sftp_logging_problems_135041094t.html</guid>
	<link>http://www.nnseek.com/e/comp.security.ssh/chrooted_sftp_logging_problems_135041094t.html</link>
	<description><![CDATA[I realise there's been a few posts on this before - but nothing seems<br>to be working for me!   I need to log file transfers etc. from sftp<br>within the chrooted environment but no dice so far.<br>My environment is Solaris 10 (x86) with SSH 5.1p1 & syslog-ng <a href="http://1.6.11" rel="nofollow" class="url" target="_blank">1.6.11</a>.<br><br>--- segment from sshd_config---<br>Subsystem       sftp    internal-sftp -f auth -l info<br><br>Match Group sftponly<br>        ChrootDirectory /export/home/%%u<br>        X11Forwarding no<br>        AllowTcpForwarding no<br>        ForceCommand internal-sftp<br>---<br><br>In syslog-ng I have the following source statement:<br><br>source syslog {<br>        internal();<br>        sun-streams("/dev/log" door("/var/run/syslog_door"));<br>        udp(ip(<a href="http://0.0.0.0" rel="nofollow" class="url" target="_blank">0.0.0.0</a>) port(514));<br>        unix-stream("/export/home/myuser/dev/log");<br>};<br><br>---<br>/export/home/myuser/dev exists and the log socket in there is created<br>by syslog-ng:<br><br>ls -l /export/home/myuser/dev/log<br>srw-rw-rw-   1 root     myuser            0 Aug 13 09:42 /export/home/<br>myuser/dev/log<br><br><br>The chroot environment works fine and all is jailed correctly. But<br>logging stops beyond the initial login:<br><br>Aug 13 11:02:20 myserver sshd[9356]: [ID 800047 <a href="http://auth.info" rel="nofollow" class="url" target="_blank">auth.info</a>] Accepted<br>keyboard-interactive/pam for myuser from ww.xx.yy.zz port 57300 ssh2<br><br>and that's it.  Any users not in group sftponly (i.e non-chroot) log<br>correctly like this:<br><br>Aug 13 11:03:34 myserver sshd[9387]: [ID 800047 <a href="http://auth.info" rel="nofollow" class="url" target="_blank">auth.info</a>] Accepted<br>keyboard-interactive/pam for nonchrootuser from ww.xx.yy.zz port 57306<br>ssh2<br>Aug 13 11:03:34 myserver sshd[9391]: [ID 800047 <a href="http://auth.info" rel="nofollow" class="url" target="_blank">auth.info</a>] subsystem<br>request for sftp<br>Aug 13 11:03:34 myserver internal-sftp[9392]: [ID 800047 <a href="http://auth.info" rel="nofollow" class="url" target="_blank">auth.info</a>]<br>session opened for local user nonchrootuser from [ww.xx.yy.zz]<br>Aug 13 11:03:36 myserver internal-sftp[9392]: [ID 800047 <a href="http://auth.info" rel="nofollow" class="url" target="_blank">auth.info</a>]<br>opendir "/export/home/nonchrootuser/"<br>Aug 13 11:03:36 myserver internal-sftp[9392]: [ID 800047 <a href="http://auth.info" rel="nofollow" class="url" target="_blank">auth.info</a>]<br>closedir "/export/home/nonchrootuser/"<br>...etc.<br><br><br>I wonder whether the ForceCommand statement needs arguments to<br>internal-sftp - but this doesn't appear to work - user authenticates<br>then is kicked out.  I've tried placing the ForceCommand command in<br>double quotes, single quotes, escaped args etc.   Permissions on the<br>home dirs & below appear OK (owner root, group myuser).<br><br>I'm not sure if this is a syslog-ng thing or ssh? I've tried looking<br>at what files are open with syslog-ng &/or ssh and recreated those in<br>the jail (i.e mknod on the chrooted /dev/null, /dev/sysmsg & a variety<br>of others).<br><br><br><br><br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.security.ssh/">comp.security.ssh</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.security.ssh/chrooted_sftp_logging_problems_135041094t.html"><b>7</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.security.ssh/chrooted_sftp_logging_problems_135041094m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Wed, 13 Aug 2008 03:09:44 PDT</pubDate>
</item>
<item>
	<title><![CDATA[scp transferring files incorrectly (checksums differ)]]></title>
	<guid>http://www.nnseek.com/e/comp.security.ssh/scp_transferring_files_incorrectly_checksums_diffe_134975046t.html</guid>
	<link>http://www.nnseek.com/e/comp.security.ssh/scp_transferring_files_incorrectly_checksums_diffe_134975046t.html</link>
	<description><![CDATA[I'm trying to copy a ~80 MB TAR file between two linux systems on the<br>same network, from system1 to system2.  The resulting file on system2<br>has the correct file size, but contains some garbled characters, and<br>doesn't pass the checksum test.  Here are the machine stats:<br><br>--- SYSTEM 1 ---<br>uname -a:<br>Linux system1 <a href="http://2.6.18-92.1.6.el5" rel="nofollow" class="url" target="_blank">2.6.18-92.1.6.el5</a> #1 SMP Wed Jun 25 13:49:24 EDT 2008<br>i686 i686 i386 GNU/Linux<br><br>ssh -V:<br>OpenSSH_4.3p2, OpenSSL <a href="http://0.9.8b" rel="nofollow" class="url" target="_blank">0.9.8b</a> 04 May 2006<br><br>cksum scripts.tar:<br>1207994514 80220160 scripts.tar<br><br>--- SYSTEM 2 ---<br>uname -a:<br>Linux system2 <a href="http://2.6.16.60-0.21-smp" rel="nofollow" class="url" target="_blank">2.6.16.60-0.21-smp</a> #1 SMP Tue May 6 12:41:02 UTC 2008<br>x86_64 x86_64 x86_64 GNU/Linux<br><br>ssh -V:<br>OpenSSH_4.2p1, OpenSSL <a href="http://0.9.8a" rel="nofollow" class="url" target="_blank">0.9.8a</a> 11 Oct 2005<br><br>cksum scripts.tar:<br>3359577481 80220160 scripts.tar<br><br><br>I'm executing: "scp scripts.tar system2:/home/fischega".  Has anyone<br>ever seen anything like this before?  This has me totally baffled.<br><br>Thanks,<br>Greg<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.security.ssh/">comp.security.ssh</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.security.ssh/scp_transferring_files_incorrectly_checksums_diffe_134975046t.html"><b>2</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.security.ssh/scp_transferring_files_incorrectly_checksums_diffe_134975046m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Tue, 12 Aug 2008 13:52:50 PDT</pubDate>
</item>
</channel>
</rss>