<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: regarding SFTP in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-sftp/m-p/3313750#M876512</link>
    <description>Simon,&lt;BR /&gt;Thanks for the response.&lt;BR /&gt;I have couple of questions,&lt;BR /&gt;How could i do that if I have to SFTP files from 6 different server to one single server??&lt;BR /&gt;How is SCP ? Is it different from SFTP?&lt;BR /&gt;Is that an option ? &lt;BR /&gt;Appreciate your feedback</description>
    <pubDate>Thu, 24 Jun 2004 09:30:03 GMT</pubDate>
    <dc:creator>Sachin_29</dc:creator>
    <dc:date>2004-06-24T09:30:03Z</dc:date>
    <item>
      <title>regarding SFTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-sftp/m-p/3313748#M876510</link>
      <description>Hi:&lt;BR /&gt;I am trying to SFTP some files thru Ksh I want to run the script(see below) thru scheduler. If I run this script it prompts for the password, Is there any way that it could be automated or read thru some file. &lt;BR /&gt;I know we could do it in FTP but FTP is not an option .. i HAVE to use SFTP&lt;BR /&gt;Please let me know if there is any way&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;$INFILE="Input.txt"&lt;BR /&gt;while read -r i&lt;BR /&gt;do&lt;BR /&gt;cd /home/$i/logs&lt;BR /&gt;/usr/bin/sftp user@host &amp;lt;&lt;EOF&gt;&amp;gt;output.log&lt;BR /&gt;put *.log &lt;BR /&gt;quit&lt;BR /&gt;EOF&lt;BR /&gt;done&amp;lt;$INFILE&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/EOF&gt;</description>
      <pubDate>Wed, 23 Jun 2004 22:00:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-sftp/m-p/3313748#M876510</guid>
      <dc:creator>Sachin_29</dc:creator>
      <dc:date>2004-06-23T22:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: regarding SFTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-sftp/m-p/3313749#M876511</link>
      <description>The "best" way to do this is setup a key pair and use ssh-agent to cache the credentials.&lt;BR /&gt;&lt;BR /&gt;The next best way is to set up a key pair, with a blank passphrase.  This is still secure data transfer, but if the keys are compromised, so is access.&lt;BR /&gt;&lt;BR /&gt;The poorest way is to use an "expect" script.  You can get expect from the HP porting center.&lt;BR /&gt;&lt;BR /&gt;Regards, Simon</description>
      <pubDate>Thu, 24 Jun 2004 04:24:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-sftp/m-p/3313749#M876511</guid>
      <dc:creator>Simon Hargrave</dc:creator>
      <dc:date>2004-06-24T04:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: regarding SFTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-sftp/m-p/3313750#M876512</link>
      <description>Simon,&lt;BR /&gt;Thanks for the response.&lt;BR /&gt;I have couple of questions,&lt;BR /&gt;How could i do that if I have to SFTP files from 6 different server to one single server??&lt;BR /&gt;How is SCP ? Is it different from SFTP?&lt;BR /&gt;Is that an option ? &lt;BR /&gt;Appreciate your feedback</description>
      <pubDate>Thu, 24 Jun 2004 09:30:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-sftp/m-p/3313750#M876512</guid>
      <dc:creator>Sachin_29</dc:creator>
      <dc:date>2004-06-24T09:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: regarding SFTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-sftp/m-p/3313751#M876513</link>
      <description>You can use scp/sftp.&lt;BR /&gt;&lt;BR /&gt;You need to authentication to exchange of public/private keys.&lt;BR /&gt;&lt;BR /&gt;Generate the keys. ssh-keygen -t dsa&lt;BR /&gt;It will create the public and private keys. (*.pub) is pubic key.&lt;BR /&gt;&lt;BR /&gt;Put this key in server_where_you_want_to_sftp/scp:$HOME/.ssh/authorized_keys.&lt;BR /&gt;&lt;BR /&gt;Do not do cut/paste business to copy the key to authorized_keys file. Transfer the *.pub file by ftp/sftp/scp/rcp etc.&lt;BR /&gt;&lt;BR /&gt;Once you are set for authentication to exchange of private/public keys, use your code to pull the files from all 6 servers to one server.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Thu, 24 Jun 2004 09:42:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-sftp/m-p/3313751#M876513</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-06-24T09:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: regarding SFTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-sftp/m-p/3313752#M876514</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;For the difference between SCP and SFTP, see:&lt;BR /&gt;&lt;A href="http://www.cam.ac.uk/cs/filetransfer/compare.html" target="_blank"&gt;http://www.cam.ac.uk/cs/filetransfer/compare.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sri Ram&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Jun 2004 09:42:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-sftp/m-p/3313752#M876514</guid>
      <dc:creator>R. Sri Ram Kishore_1</dc:creator>
      <dc:date>2004-06-24T09:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: regarding SFTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-sftp/m-p/3313753#M876515</link>
      <description>scp is the way to go.&lt;BR /&gt;&lt;BR /&gt;scp is the rcp replacement that is secure, it is part of openssh.&lt;BR /&gt;&lt;BR /&gt;Here is how you script it&lt;BR /&gt;&lt;BR /&gt;$LOGDIR=/home$i/logs&lt;BR /&gt;cd $LOGDIR&lt;BR /&gt;scp *.log user@hostname://directory&lt;BR /&gt;&lt;BR /&gt;You can do this password free if you follow the document I am giving you to exchange publickeys between the two servers.&lt;BR /&gt;&lt;BR /&gt;You can use cat, the doc says use X but you can do it all with cat commands.&lt;BR /&gt;&lt;BR /&gt;see doc&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 24 Jun 2004 09:46:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-sftp/m-p/3313753#M876515</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-06-24T09:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: regarding SFTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-sftp/m-p/3313754#M876516</link>
      <description>Hi :&lt;BR /&gt;thanks it works between my test server for me here.. &lt;BR /&gt;But the remote server I have access to doesnt have my $HOME directory.&lt;BR /&gt;I could put the authorized_key files in one of the folder ? In this case how does this work??&lt;BR /&gt;Please let me know&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Jun 2004 11:59:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-sftp/m-p/3313754#M876516</guid>
      <dc:creator>Sachin_29</dc:creator>
      <dc:date>2004-06-24T11:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: regarding SFTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-sftp/m-p/3313755#M876517</link>
      <description>Sachin,&lt;BR /&gt;You don't have a home directory in the remote server for the login name? &lt;BR /&gt;Is it for only to do the sftp or something?&lt;BR /&gt;&lt;BR /&gt;I think if the remote server is running ssh1, it expects the key files to be in the ~/.ssh directory.&lt;BR /&gt;&lt;BR /&gt;But if it is ssh2, thre is a parameter called "UserConfigDirectory", which need to be setup in their sshd_config file. But the catch is this is a system wide parameter and all user's authorized keys file location would change.&lt;BR /&gt;&lt;BR /&gt;Here is the excerpts from a ssh documentation,&lt;BR /&gt;5.4.1.5. User SSH directory&lt;BR /&gt;sshd1 expects a user's SSH-related files to be found in the directory ~/.ssh. This location can't be changed by serverwide configuration. (You have to modify the source code.)&lt;BR /&gt;&lt;BR /&gt;sshd2 expects user files to be in the directory ~/.ssh2 by default, but this can be changed with the UserConfigDirectory keyword. The directory name may be literal, as in:&lt;BR /&gt;&lt;BR /&gt;# SSH2 only&lt;BR /&gt;UserConfigDirectory /usr/local/ssh/my_dir&lt;BR /&gt;or it may be specified with printf-like patterns, as in:&lt;BR /&gt;&lt;BR /&gt;# SSH2 only&lt;BR /&gt;UserConfigDirectory %D/.my-ssh&lt;BR /&gt;The %D pattern expands to the user's home directory. So the preceding example expands to ~/.my-ssh. The following table shows the available patterns:&lt;BR /&gt;&lt;BR /&gt;Here is the full link,&lt;BR /&gt;&lt;A href="http://216.239.51.104/search?q=cache:AdvSrye6xRkJ:secu.zzu.edu.cn/book/NetWork/NetworkingBookshelf_2ndEd/ssh/ch05_04.htm+ssh+userconfigdirectory&amp;amp;hl=en" target="_blank"&gt;http://216.239.51.104/search?q=cache:AdvSrye6xRkJ:secu.zzu.edu.cn/book/NetWork/NetworkingBookshelf_2ndEd/ssh/ch05_04.htm+ssh+userconfigdirectory&amp;amp;hl=en&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Abdul.</description>
      <pubDate>Thu, 24 Jun 2004 14:42:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-sftp/m-p/3313755#M876517</guid>
      <dc:creator>Abdul Rahiman</dc:creator>
      <dc:date>2004-06-24T14:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: regarding SFTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-sftp/m-p/3313756#M876518</link>
      <description>If you do not have $HOME on that particulat server, then where does it take you when you login?? Try creating .ssh in there and putting *.pub in .ssh/authorized_keys.&lt;BR /&gt;&lt;BR /&gt;Don't know, if this will work or not.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Thu, 24 Jun 2004 15:01:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-sftp/m-p/3313756#M876518</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-06-24T15:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: regarding SFTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-sftp/m-p/3313757#M876519</link>
      <description>Unfortunately, there is a very limited access to the remote server. Once I log in to the remote server, I get logged on to /  i have write permission on only one directory&lt;BR /&gt;A. I creatd .ssh/authorized_keys under A doesnt help.. and also authorized_keys under A (just for the heck of it) .. &lt;BR /&gt;Truly appreciate all of your help.. learnt a lot from this thread. &lt;BR /&gt;Any solution is always welcome .. If i find any solution I would post it ..Last optionis to try expect which I would try to avoid..&lt;BR /&gt;thanks a lot..&lt;BR /&gt;Sachin</description>
      <pubDate>Thu, 24 Jun 2004 17:17:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-sftp/m-p/3313757#M876519</guid>
      <dc:creator>Sachin_29</dc:creator>
      <dc:date>2004-06-24T17:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: regarding SFTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-sftp/m-p/3313758#M876520</link>
      <description>May I extend the breadth of this thread:&lt;BR /&gt;We also are implementing SFTP; our problem is&lt;BR /&gt;converting our customers from the GUI WS_FTP&lt;BR /&gt;that I believe uses anonymous ftp, to WINSCP&lt;BR /&gt;GUI.  Problem is preventing the customer from transversing up the directory.  We have read the numerous 'chroot jail' solutions, but it seems so 'messy'.  We have a common&lt;BR /&gt;directory for all customers who can transverse many different subdirectories.  Permissions is not a viable alternative.&lt;BR /&gt;We are soliciting comments/best practices /solutions.&lt;BR /&gt;Thank you in advance</description>
      <pubDate>Fri, 25 Jun 2004 09:41:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-sftp/m-p/3313758#M876520</guid>
      <dc:creator>Jon A. Miller</dc:creator>
      <dc:date>2004-06-25T09:41:12Z</dc:date>
    </item>
  </channel>
</rss>

