SFTP script using firewall information


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting SFTP script using firewall information
# 1  
Old 11-06-2015
SFTP script using firewall information

Hi,
i have a scripts which transfer a file from source to dest server. It uses the firewall information like IP, USERNAME, PASSWORD.

I wanted to know it belongs to source system firewall or the destination firewall info. How to check that firewall connection is working or no without running the script?
# 2  
Old 11-06-2015
At the command line:
Code:
sftp USERNAME@IP
sftp> PASSWORD
sftp> ls
sftp> exit

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Sftp command usage information

hello how do we get detailed information of an sftp command? for example when you type help on sftp, you get the available commands and their brief descriptions. What if you want to get detailed usage information, for example when you want to know what the command line options do..? in... (5 Replies)
Discussion started by: milhan
5 Replies

2. Shell Programming and Scripting

Shell script, sftp logfile not showing transfer information

Hello, Recently I have changed some crontab scripts which I execute to do different tasks mainly transfering some files from one server to the other. The main change was the protocol from ftp transfer to sftp. Ftp server was the MS Windows default service, and Sftp server is an proprietary sw... (4 Replies)
Discussion started by: enux
4 Replies

3. Fedora

sftp Unspecified GSS failure Minor code may provide more information No credentials cache found

Hi I have managed on numerous machine to set up sftp not too require a password - i finally have one that does not work and Im at a loss - looked around checked permissions etc The 2 machines Ill call then source and target I need to sftp from source to target (previously the target has... (3 Replies)
Discussion started by: wwwdaryl
3 Replies

4. Shell Programming and Scripting

SFTP-how to log individual sftp command error while executing shell script

Hi, I have situation where i need to automate transferring 10000+ files using sftp. while read line do if ; then echo "-mput /home/student/Desktop/folder/$line/* /cygdrive/e/folder/$line/">>sftpCommand.txt fi done< files.txt sftp -b sftpCommand.txt stu@192.168.2.1 The above... (1 Reply)
Discussion started by: noobrobot
1 Replies

5. Shell Programming and Scripting

Firewall Check Script

Hello, I made a following script that check every 5 minutes to check firewall is running or not, if firewall down that raise an alert only once, but following script generate an alert every 5 minutes according to cronjob: FILE="/var/log/fwstatus" CHK="/tmp/fwstatus" service... (1 Reply)
Discussion started by: telnor
1 Replies

6. Solaris

SFTP Client service information

Hi, How to find out which sftp client is installed in my system? And the UserId and Password used for SFTP service. I am using SunOS 5.8 Please help. Thanks, Raj (1 Reply)
Discussion started by: reeturaj_sunny
1 Replies

7. Solaris

how can i send via SFTP information with my password encrypted?

I have a Solaris 5.9 server and need send information via SFTP automaticaly, and set my username and password encrypted. How can I do this? Best regards (1 Reply)
Discussion started by: irasela
1 Replies

8. UNIX for Dummies Questions & Answers

version information sftp

can anyone please tell a method to obtain version information of sftp in linux (3 Replies)
Discussion started by: aina_villatoro
3 Replies

9. Cybersecurity

The Best Script For Iptables Firewall

UTIN Firewall script for Linux 2.4.x and iptables ============================================== #!/bin/sh # # rc.firewall - UTIN Firewall script for Linux 2.4.x and iptables # # Copyright (C) 2001 Oskar Andreasson <bluefluxATkoffeinDOTnet> # # This program is free software; you can... (5 Replies)
Discussion started by: binhnx2000
5 Replies
Login or Register to Ask a Question