If their is such a thing as a command line version of a SSH client for windows ( at SSHWindows.SourceForge.Net: OpenSSH for Windows perhaps?) and you set up SSH keys to allow password-less login then you can then run from a batch file:
which will then run "/path/command" as the user "username".
Hello All,
Could someone help me out with this? I want to incorporate this into an existing script so the output of a SAS job can be ftp'd from our UNIX box to a directory on a drive in Windows environment. Can this be done with no extra third party software? We currently use Putty for copy... (2 Replies)
Hi,
I m trying to connect/establish FTP from unix shell script to my PC.Below the script i have written
#!/bin/ksh
ftp -v -n ddcappip01.com << "EOF"
user Amit jason
bye
EOF
------------------------------ERROR--------------------------
but i m getting the below error for the... (4 Replies)
hi,
I have an unix script and i'm executing from command prompt in windows.
The script is exiting immediately when i call the script.But the script is getting executed at the back end.
But when i type sh at command prompt i'm getting $ sign and i can see the execution of script.
Is there... (5 Replies)
Hi,
When I run the below script in UNIX it's throwing syntax errors. Actually it's a windows batch script. Could anyone change the below Windows Batch script to UNIX shell script...
Script:
REM :: File Name : Refresh_OTL.bat
REM :: Parameters : %1 - Region
REM :: : %2 - Cube Type
REM ::... (5 Replies)
Hi ,
I need to ftp some input files from windows to unix server.All the files will be saved in the C drive in my machine.Currently all these files are transferring manually to the unix server.I need to write a shell script which ftp the files from windows to unix box.When I searched in the forum i... (1 Reply)
I want to perform few post-session success tasks like update a status to 'true' in one of the sql database table, update date values to current system date in one of the configuration table in sql. How do i achieve this in a post session command?syntax with example will be helpful. (3 Replies)
Hi,
Is it possible to ftp a huge zip file from windows to unix server using unix shell scripting?
If so what command i need to use.
thanks in advance. (1 Reply)
Hi,
I am working on a sever A.
I want to write a perl script to execute a shell script persent on the server B.
please help me in this.
thanks in advance. (3 Replies)
how to execute shell script present in unix machine remotely from windows?
I having a shell script in my unix machine, need to execute the script remotely from my windows machine using Visual Basic or VBA macros.
Thanks In Advance.
--Suresh (1 Reply)
Discussion started by: sureshmani
1 Replies
LEARN ABOUT DEBIAN
net::cli::interact::transport::ssh
Net::CLI::Interact::Transport::SSH(3pm) User Contributed Perl Documentation Net::CLI::Interact::Transport::SSH(3pm)NAME
Net::CLI::Interact::Transport::SSH - SSH based CLI connection
VERSION
version 1.121640
DECRIPTION
This module provides a wrapped instance of an SSH client for use by Net::CLI::Interact.
INTERFACE
app
On Windows platforms you must download the "plink.exe" program, and pass its location to the library in this parameter. On other platforms,
this defaults to "ssh" (openssh).
runtime_options
Based on the "connect_options" hash provided to Net::CLI::Interact on construction, selects and formats parameters to provide to "app" on
the command line. Supported attributes:
host (required)
Host name or IP address of the host to which the SSH application is to connect. Alternatively you can pass a value of the form
"user@host", but it's probably better to use the separate "username" parameter instead.
username
Optionally pass in the username for the SSH connection, otherwise the SSH client defaults to the current user's username. When using
this option, you should obviously only pass the host name to "host".
ignore_host_checks
Under normal interactive use "openssh" tracks the identity of connected hosts and verifies these identities upon each connection. In
automation this behaviour can be irritating because it is interactive.
This option, enabled by default, causes "openssh" to skip or ignore this host identity verification. This means the default setting is
less secure, but also less likely to trip you up. It is equivalent to the following:
StrictHostKeyChecking=no
UserKnownHostsFile=/dev/null
CheckHostIP=no
Pass a false value to this option to disable the above and return "openssh" to its default configured settings.
opts
If you want to pass any other options to openssh on its command line, then use this option, which should be an array reference. Each
item in the list will be passed to "openssh", separated by a single space character. For example:
$s->new({
# ...other parameters to new()...
connect_options => {
opts => [
'-p', '222', # connect to non-standard port on remote host
'-o', 'CheckHostIP=no', # don't check host IP in known_hosts file
],
},
});
reap
Only used on Unix platforms, this installs a signal handler which attempts to reap the "ssh" child process. Pass a true value to enable
this feature only if you notice zombie processes are being left behind after use.
COMPOSITION
See the following for further interface details:
o Net::CLI::Interact::Transport
AUTHOR
Oliver Gorwits <oliver@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Oliver Gorwits.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-06-12 Net::CLI::Interact::Transport::SSH(3pm)