OpenSSH: How to setup non-interactive SSH/SFTP/SCP

Hi,
Anyone has any idea how to setup/configure OpenSSH on Solaris (Client) & Windows (Server) for sftp/scp transfer in non-interactive host-based authentication.
I need to setup this for secure file transfer from a solaris client to a windows server without having to enter a password. My external script will run in crontab to tap on sftp/scp for file transfer.
Pls advise. thanks.

I'd go for key-based authentication and simply don't provide a password for the key. You're on your own about how to implement this on Windows, so far I wasn't even aware Windows had a SSH service.

Similar Messages

  • [SOLVED] Non-interactive SSH login and shell startup files

    I have a problem getting git-annex connecting to my arch box because of
    PATH not being correctly set. When diagnosing this problem I noticed that
    ~/.bashrc seems to be ignored for non-interactive SSH logins. More specifically,
    ssh myhost env
    Shows that when connecting to my other computer running gentoo, or to a
    separate server (probably running some flavor of Debian, I am not sure),
    environment variables defined in ~/.bashrc are present, but when connecting
    to my arch box, they are not. All three computers have identical ~/.bashrc
    files and ~/.bash_profile is set to read ~/.bashrc, and in all cases the file is
    sourced for an interactive login (i.e., 'ssh myhost' followed by 'env'). I tried to
    search through the various bash files in /etc, but didn't find anything related.
    Is there some bash or SSH setting that controls this behavior?
    Solution:
    I looked into this a bit more and found BASH_ENV which can be used to point to
    a file which is sourced for non-interactive shells. So I set
    BASH_ENV=~/.bashrc
    in /etc/environment, and now ~/.bashrc is sourced even for non-interactive
    shells and thus my PATH is correctly set. What I still don't know is why
    arch behaves differently in this respect, but I guess that will remain a mystery.
    Last edited by Nuteater (2012-07-27 18:59:30)

    try creating a .login file and put exec bash in there.
    Not _super_ familiar with csh, but I *think* csh loads .login only on login shells (as apposed to always loading .cshrc).
    Barring that, the following should work.
    if (! $?prompt) goto cshrc_end
    exec bash
    cshrc_end:

  • How to setup User-level LaunchDaemons and scp/rsync

    We are trying to rsync/scp scripts from a Xserve 10.6 (just installed) to an Xserve 10.4, both of which which run scientific models, and transfer output files between systems automatically. These scripts must start automatically on reboot. This is easily done via cron jobs on our older Xserves.
    Taking the plunge into converting cron jobs to launchd jobs has, for the most part, gone relatively smoothly. However, I am unable to locate instructions/examples on how to do the following:
    While it is possible to set up a LaunchDaemon *.plist on a System(root) level by placing it in /Library/LaunchDaemons, it is unable to do an scp or rsync (without needing the password), because it does not have a root id_dsa.pub installed on the remote Xserve (I really do not want to do that!). An scp/rsync job should be done at the user level.
    According to the man pages, there is no such thing as a ~user/Library/LaunchDaemons, only ~user/Library/LaunchAgents, which if I understand correctly, are only executed when the user logs in.
    So how do I permit user-level scp/rsync operations (easily done in cron) using launchd?

    Thank you for your comment and suggestion. I will give your suggestion a try. However, it seems the question is still open:
    If a user wants to write a program/script that does an scp/rsync that transfers a file from one host to another (assuming the .ssh keys are properly set up), and put it into a launchd process that executes like it would under a cron (i.e., they do not need to be logged in, and it persists after a reboot), how is this accomplished without using the root-level /Library/LaunchDaemon?
    Am I miss-informed that a users LaunchAgents are executed only when the user logs in?
    At least in the scientific arena, using a cron to transfer files is a very regular practice. It would be a major headache if the system administrator had to manually add each users launchd files to /Library/LaunchDaemon

  • How to setup real SFTP in Yosemite?

    There's lots and lots of information online about how to setup remote access to my mac using SSH and SFTP in Yosemite...but apparently none of it is actually useful for genuinely  remote access...access from outside my network, access from miles away.  Because here is what I have learned:
    The ip address listed in the Sharing pane when you access remote login is internal.  it's some version of 192.168.x.x, which is essentially everybody's computer and utterly useless from outside the network.
    So my actual public ip as assigned by my service provider is really my IP if you are trying to get to my computer from outside.
    But that IP doesn't "just work" via SSH or, much more importantly for me, SFTP.  Evidently that involves something called "port forwarding" which one used to be able to do via Airport Utility, but is no longer possible because such options do not exist in the current version of the utility.
    (What I want to achieve is for a friend of mine, a friend on a mac about 4 miles away,  to be able to directly access very large files on my computer. I don't want to use clouds or public sites or anything like that, I just want to be my own private little FTP server just for her. That used to be no big deal.)
    So... is there a solution for this?

    Dropbox may be a better option if you can both have accounts with enough storage, it is a simple setup process that can be forgotten about.
    Bittorrent sync is another option that mirrors data between several endpoints. You should get better performance if the files are not being transferred over the network (Dropbox & Bittorrent sync create copies at each end).
    ssh & port forwarding allows you to use sftp, if you do some more setup you can also use sshfuse to mount the remote content as a network disk, it's a plugin for http://osxfuse.github.io
    Just be aware that many scripts & botnets are constantly attempting to login on visible ssh ports on routers across the internet. Enabling ssh to outside access means that any user on you Mac can be a potential login - have good passwords set on ALL user accounts, and do not enable the root account password. There are also options to disable passwords in ssh (& use ssh keys only) if you want better security.
    ssh is good, but it is not trivial to setup and it won't open ports for you. Apps like bittorrent sync can use UPnP to request port forwarding rules, to make setup easier.
    Back to My Mac is OK, provided you are willing to hand over the keys to your Apple ID.
    P.S. You keep mentioning ftp, please avoid ftp. ftp can use plain text passwords that can be sniffed over the network, avoid opening the network to inbound ftp traffic too.

  • How to use Reader in non-interactive persistent mode to convert PDFs?

    How to use Adobe Acrobat Reader in non-interactive and persistent mode to convert PDFs to PostScript (or even better, bitmapped image files) ?
    At present, I'm using
        acroread -toPostScript  indir/*pdf outdir/
    to convert a set of PDFs to PostScript (the platform is Solaris on Sparc).
    These PDFs arrive at varying rates at arbitrary intervals and I'd like to avoid the overhead of startup of the acroread process and loading of the fonts etc. I would like the acroread process to become persistent and that it should convert the PDFs either as and when they become available or on demand (ie upon receipt of some signal or message).
    In the words, the usage is similar to that used by web browsers, which is effectively a client of the rendering service provided by the Adobe Acrobat Reader running in the background.
    The only difference is that I need the output in a file (or set of files), either bitmap or PostScript.
    Any help / pointers on how to do this would be greatly appreciated.
    Thanks and best regards.

    Hello,
    As I understand, you would like to setup a watch folder which will be getting pdf files in arbitrary intervals. You then want each pdf to be converted to ps in a separate folder.
    You could achieve this with the help of a script by polling for pdf files present in the watch folder. When you find pdf files, convert them to ps, save the ps file in another folder and then move the pdf to another folder.
    In any case, once the process of conversion of pdf to ps is over, acroread will quit.
    There is no way to keep the acroread process running in background and convert pdfs as and when they are available.
    Please let me know if this answers your query.
    Regards,
    Rishi

  • How to make an interactive report, non-interactive

    Hi,
    I have an interactive report. I have disabled every interactive control from the report by setting "include search bar" to NO and also at column level i didnt allow to sort or group or any other thing. Only problem is that when i click the column heading, i see a text box poping up and asks to enter some value so that it could filter the report and if i provide any value and pres enter, it returns message "ERR-1777: Page 1 provided no page to branch to. Please report this error to your application administrator."
    How can i disable this text box from appearing and making report fully non interactive. I don't want to rebuild the page as not interactive report and want to disable this popup from my current interactive report.
    Thanks
    Salman
    Edited by: Salman Qureshi on Aug 19, 2009 10:11 AM

    Hi Salman,
    You can "disable" the column links by hiding them.
    The simplest method would be to change the column heading to something like:
    </div>>div<EnameThe link is created on a DIV tag that contains no text. The above will close this DIV and open a new one for the heading. As there's no text in the first DIV, the user can't see it nor click on it.
    Andy

  • How to setup the connection between non-unicode client and unicode server?

    hi.
    we played the program in 4.6x that call a data from unicode server (ECC6.0) to non-unicode server.  ( not played in the unicode server.)
    When a program ended that English Character was normal, but Korean Chinease... was unknown text.
    I think conversion from unicode to non-unicode is a main reason.
    General Notes are issued for the unicode side rfc connection configuration.
    but, i want to know how to setup into the non-unicode system to interface with unicode system.
    I hope your great answer.

    Hi,
    For taht you have to deploy korean and chinese langauges seprately on non unicode system.Then try to connect to the unicode system.It will work for you.
    Regadrs
    Vijay kumar

  • How to get a non-interactive Form

    Hello,
    Is it possible to use livecycle Forms to generate a non-interactive PDF using a pdf file? If using a xdp file i get a non-interactive pdf file, however, when using a pdf file as the input the pdf is always interactive. the parameters I used:
    sPreferences = "PDF";
    options = "CacheEnabled=False&RenderAtClient=False",
    thank you

    From Visual Basic 6 I am attempting to merge several copies of a template form. Since these copies all have the same field names, InsertPages will not work properly. Alternatively I sought to re-name the field names in my code. Turns out this is a read-only property. My last thought is to somehow convert the "interactive" pdf into a "static" (or, "non-interactive" one that I will be able to merge. Anyone know how to do this? thanks

  • How to execute orainstRoot.sh during non-interactive install

    I'm creating a non-interactive install for 8.1.7 using the
    -silent and -responseFile switches. However, the install
    continues to hang when it gets to the point where orainstRoot.sh
    needs to be run as root. The oracle response file titled
    svrcustom.rsp only takes into account the need to run root.sh.
    There is no provision for orainstRoot.sh. Has anyone else encountered this and, if
    so, how did you get around this?
    Thanks,
    Bruce

    Hi:
    Oracle patching utility (adpatch) is optimized not to execute/copy the file unless the version in the $Header is higher in the patch as compared to the instance. Please bump up the $Header version within the script and update the package to pull in the changed file. When you deploy the package again, the file should get invoked.
    Thanks,
    Lokesh
    Oracle Development

  • HT201320 How to setup free Rediffmail on IPAD, none of setting options avaiable on net is working till now.

    How to setup free Rediffmail on IPAD, none of setting options avaiable on net is working till now.

    You wrote so much that I find it hard to address all your concerns.  However, here are some thoughts:
    1) I'd configure the Time Capsule as the "main" router, connected directly to your cable modem.  Configure it to "create a wireless network" and to "Allow this network to be extended".  Configure the other devices to "Extend a wireless network".
    2) Put any device that's extending the network half way between the main router and the wireless clients.  If the signal from the main router is weak at the cllient's location, then the extending device will also receive a weak signal.

  • Show / Hide Elements - how to make hidden elements non-interactive

    Hi,
    Is there a way to make hidden obejcts (through 'Show / Hide') not only hidden but completely non-interactive? I.e. even if an image is hidden, it is still click-able, which will release its set commandos (such as 'Swap Image' or 'Set Text of Container').

    Thanks a bunch! I haven't started out with the code yet. Just made some sketches to see what I need to research etc.
    When I get around to it, I'll get back to you!
    /Orvar

  • Java API that implements the SSH, SFTP and Telnet protocols

    Hi,
    I'm looking for a Java API that implements the SSH, SFTP and Telnet protocols. Does anyone have a suggestion?
    Any Suggestions are really appreciated ?
    Thanks,
    Avin

    I believe SSH and telnet are used for interactive command line sessions, don't know how you want to use them in a program.

  • How to Setup SSL on Oracle Application Server 10g Release 2 (10.1..2)

    Hi All,
    Can anybody tell me How to setup the SSL on Oracle Application Server 10g Release 2 (10.1.2).
    I have all the required documents like
    1. Oracle Application Server Portal Server Configuration Guide.
    2. Oracle Application Server Web Cache Configuration Guide.
    3. Oracle Application Server SSO Administration Guide.
    I tried to follow all this documents but still i am not able to set SSL for Oracle Portal Server.

    The Portal Configuration Guide, available on OTN at http://www.oracle.com/technology/documentation/appserver1012.html does provide some very specific information on how to set up OracleAS Portal.
    Section 6.3.2.1 Configuring SSL for OracleAS Portal describes various configurations, such as:
    SSL to OracleAS Single Sign-On
    SSL to OracleAS Web Cache
    SSL Throughout OracleAS Portal
    External SSL with Non-SSL Within Oracle Application Server
    For larger enterprise configurations, you can refer to the Enterprise Deployment Guide.
    Can you give a bit more background on what you are trying to set up? Which scenario, what sort of hardware, software versions, and so on.
    Regards,
    Pete

  • How to setup the security based on roles in Organization.

    Hi,
    How to setup the security based on roles in Organization.
    For example:Few users are Manager and a few user are Non Manager .Manager should have access to all work data including Non Manager and Non Manager should access based role.How to setup this? How OBI server identify the user role?
    kindly let me know.
    Regards.,
    CHR

    Hi,
    You need to have Back End support to achieve this. In Back End you need to create two groups . You need to know what joins has to be made for which group (which is more important) and also make session variable for the userrole (with SQL supporting it). In the BMM layer, we need to put the security join conditions in the 'where clause'.
    And make a common report. User loggin in with the respective userid will have userrole and joins assigned in the Back end. And they will be viewing the report according to their access.
    Hope this will solve your problem.
    Regards
    MuRam

  • How to setup a password protection in my wireless airPort?

    How to setup a password protection to my wireless AirPort?

    To configure the AirPort base station for wireless security, you will need to use the AirPort Utility.
    AirPort Utility > Select the AirPort > Manual Setup > AirPort > Wireless tab
    Wireless Security: <None | WEP (Transitional Security Network) | WPA/WPA2 Personal | WPA2 Personal>
    Wireless Password: <enter your desired password>
    Verify Password: <reenter your desired password>

Maybe you are looking for

  • Database fields empty after creating a new (Crystal) Report in MSY

    Hello, I have some issues to use Crystal Reports in Mobile Sales Maintenance (MSY). The situation is as follows My example is based on this standard report, which is working Report Name: BPartnerActivities Reporting Tool: Crystal Reports Category: St

  • Ipod error message...help plz...

    k when i hook my ipod to my comp it says "itunes has detected an ipod that appears to be corrupted you may need to restore this ipod before it can be used with itunes"...and ive tried restoreing it...and it still says that someone know a way to help

  • How can i get and save the name of the file

    Hi all in my program i'm dealing with several text files each has its own name after doing some process on each i do save the output as output.txt can i add the file name before or after the output.txt i.e i want the name of the file to be part of th

  • How to install test data on iPhone

    I have some test data which I have been using in the simulator by copy it to the applications private Documents folder. I can then open this file in my application running on the simulator and use to verify results etc. How can I install this test da

  • Patch Solaris 8 systems

    Hi Is there anyone that has successfully been able to patch Solaris 8 systems using this tool? If you have a guide I would be happy. I have tried a couple of times but failed even though I have installed required patches. Regards Jerry