Sponsored Content
Top Forums Programming How to write a shell script to connect to another server? Post 302417055 by Corona688 on Wednesday 28th of April 2010 11:25:55 AM
Old 04-28-2010
Quote:
Originally Posted by Angelo
I thank both Corona and Verde for the replies.

Corona, I need some more information.

1.First I have to install SSH
2.Afterwards I have to install SCP

I hope the above is correct. Please tell me if I am wrong.
I don't know exactly what you're doing, so I can't say.
Quote:
Even my friends have to do the same thing. Otherwise they can't copy files and folders from my system. Please tell me if I am wrong.
What is your system? You were writing a script for ssh before. If your system lets people ssh to it, it lets people scp to it.

If you're scp-ing from Windows computers to UNIX ones, all you need is pscp. pscp is a standalone program. It doesn't even need to be installed, it's a sole executable file.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

shell script for how to connect to a remote server by using ssh

i want to connect to a remote server through ssh. i have to also provide password within that script. after connecting to the remote server i want to do some operations like grep,cd etc can u pls help me to wite a script. Thanks (1 Reply)
Discussion started by: millan
1 Replies

2. Shell Programming and Scripting

How to write a shell script for rsync to remote server?

Hello, Can you help me to write a shell script for rsync a folder from my server to remote server ? i do this in ssh by this command : rsync -avz -e ssh /copy/me/ login@serverip:/where/to i want have a shell script that do this command. and you know that this command ask remote... (0 Replies)
Discussion started by: Desperados
0 Replies

3. Shell Programming and Scripting

Shell Script to connect to another server and copying files

Hi Unix Gurus, I have a doubt reg file transfer. I have used the below script to connect to another server and find files having modified for the last 24 hours and have to move the file to another server. While i tried i am getting authentication failed, destination path not found issue. ... (2 Replies)
Discussion started by: incepted
2 Replies

4. Shell Programming and Scripting

connect to SQL server from shell script

Hi all, I need to connect to SQL server from shell script. Then need to execute queries from shell script. Kindly let me know on how to do this Thanks, Ananthi.U (1 Reply)
Discussion started by: ananthi_ku
1 Replies

5. Solaris

connect to SQL server from shell script

Hi all, I need to connect to SQL server from shell script. Then need to execute queries from shell script as below 1. To compare values of an array with SQL table's entry. Kindly let me know on how to do this Thanks, Double post. Continue here (0 Replies)
Discussion started by: amitbhelave
0 Replies

6. Shell Programming and Scripting

connect to SQL server from shell script

Hi all, I need to connect to SQL server from shell script. Then need to execute queries from shell script as below 1. To compare values of an array with SQL table's entry. I am using solaris-5.1 to run shell script and want to connect to SQL-5.1 which is installed on SantOS. Kindly let... (3 Replies)
Discussion started by: amitbhelave
3 Replies

7. Shell Programming and Scripting

Connect (SSH) to Windows server via Linux server through a script and passing command.. but failing

I am trying to connect to Windows server via Linux server through a script and run two commands " cd and ls " But its giving me error saying " could not start the program" followed by the command name i specify e g : "cd" i am trying in this manner " ssh username@servername "cd... (5 Replies)
Discussion started by: sunil seelam
5 Replies

8. Shell Programming and Scripting

Shell script to connect from one server to other

Dear Experts, I am new to the shell scripting. I am looking for a shell script to connect to one Unix/Linux server1 to other Unix/Linux server2 and trigger a SAP Event in that server2 (Which will trigger a job in SAP). Is this possible to connect from one server to the other server securely... (7 Replies)
Discussion started by: Venu V Reddy
7 Replies

9. UNIX for Advanced & Expert Users

How to write if condition in shell script for application server?

Hi all, I have a code to create folder in application server through shell script and i want to create if conditional based folder folder=$HOME/test/sample/whatever if ; then echo "$folder already exists, not created." else mkdir -p "$folder" > /dev/null 2>&1 ... (7 Replies)
Discussion started by: Boost
7 Replies

10. Shell Programming and Scripting

Not able to connect to Oracle server from shell script

Hi, I am facing an issue in connecting to database from Linux shell script. Here is my code export ORACLE_BASE=xxx export ORACLE_SID=xxx export ORACLE_HOME=xxxx DB_PATH=xxx/'yyy@yy' UserId=`sqlplus -s $DB_PATH <<EOF set head off feedback off select max(USER_ID)+1 from USERS;... (6 Replies)
Discussion started by: yuvi
6 Replies
SECPANEL(1)						      General Commands Manual						       SECPANEL(1)

NAME
secpanel - a Tcl/Tk front-end to ssh and scp SYNOPSIS
secpanel DESCRIPTION
SecPanel serves as a graphical user interface for managing and running SSH (Secure Shell) and SCP (Secure Copy) connections. Note: SecPanel is not a new implementation of the SecureShell protocol or the ssh software-suite. SecPanel sits on top of SSH software-suites and supports the SSH.com and the OpenSSH-version. You may get information about these programs at http://www.ssh.com respectively at http://www.openssh.com. SecPanel is written entirely in pure Tcl/Tk and does not need any extensions but it requires Version 8.x of Tcl and Tk. SecPanel is free software and is released under the conditions of the GNU General Public License. See the file COPYING and notes in the source code for details. Features Saves and manages profiles of different SecureShell connections. Gives an ftpclient-like graphical interface/file listing for launching SCP-transfers. Editing of profiles mainly by mouse-clicking. Gives list of profiles to connect to. One list for default connections using a default profile and another list for managing special connections e.g. port-forwarding setups for reading mail. Management of the ssh-agent. Support for generating and distributing keys for public key authentication. Planned Features Support for the SSH2 protocol related options, configurations and special features of SSH.com's and OpenSSH's suites. AUTHOR
Steffen Leich <secpanel@pingx.net> SEE ALSO
ssh(1), scp(1), ssh-askpass(1), ssh-agent(1) Debian Project 2002-06-30 SECPANEL(1)
All times are GMT -4. The time now is 11:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy