1 Automated SFTP Windows and SUN Linux and SUN. 2 Vocabulary  Client = local=the machine generating the SFTP request  Server = remote = the machine.

Slides:



Advertisements
Similar presentations
Secure File Transfer Protocol (SFTP) With Secure Copy (SC) What is a Secure File Transfer Protocol with Secure Copy???
Advertisements

LIS651 lecture 5 direct use of wotan Thomas Krichel
Connecting to GMT machine via Windows 7. Windows PuTTy GMT on Mac server int-038.geosci.usyd.edu.au To use GMT, you will connect to a Mac server via PuTTy.
Spring 2014 RMS/EOC Proctor Caching Training. Agenda 2 Proctor caching overview Downloading & installing Cache test content.
Sonny J Zambrana University of Pennsylvania ISC-SEO November 2008.
SSH SSH is “Secure SHell” Secure, compressed, widely supported, fast Allows both users to get jobs done, and also allows system administrators to sleep.
SSH Operation and Techniques - © William Stearns 1 SSH Operation and Techniques The Swiss Army Knife of encryption tools…
PlanetLab What is PlanetLab? A group of computers available as a testbed for computer networking and distributed systems research.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
Chapter 19 FTP: Transferring Files Across a Network
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
Amazon EC2 Quick Start adapted from EC2_GetStarted.html.
Remote access and file transfer Getting files on and off Bio-Linux.
Ssh: secure shell. overview Purpose Protocol specifics Configuration Security considerations Other uses.
A crash course in njit’s Afs
February 2006Colby College ITS Using FTP. February 2006Colby College ITS Topics FTP Options at Colby For Mac Users For Windows Users.
SoftwareTools CGS 3460, Lecture 7 Jan 25, 2006 Zhen Yang.
2440: 141 Web Site Administration Remote Web Server Access Tools Instructor: Enoch E. Damson.
Accessing the Internet with Anonymous FTP Transferring Files from Remote Computers.
Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql.
CSE 390a Editing and Moving Files
Andreas Steffen, , 11-SSH.pptx 1 Internet Security 1 (IntSi1) Prof. Dr. Andreas Steffen M. Liebi Institute for Internet Technologies and Applications.
Chapter 1: The Internet and the WWW CIS 275—Web Application Development for Business I.
Using VCL for Distributed Pair Programming CSC/ECE 517, Spring 2013.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
Copyright (c) by CNAPTICS Corporation. All rights reserved.1 INFO Oracle Database 11g: Administration II Presented By: Marc S. Paller,
We will now practice the following concepts: - The use of known_hosts files - SSH connection with password authentication - RSA version 2 protocol key.
Logging into the linux machines This series of view charts show how to log into the linux machines from the Windows environment. Machine name IP address.
Intel SFT CR Sept 2011 Release 9/28/ Minimize Command Line Params intelsftconfig.ini can now be used instead of the command line or used in conjunction.
TAMU CSCE 313 (the basics). Basic Unix/Linux programming Accessing CS systems  PuTTY (putty.exe) – a Telnet and SSH client  Common hosts: unix.cs.tamu.edu.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
1 INFO 321 Server Technologies II FTP Material adapted from Dr. Randy Kaplan.
Department of Computer Science Southern Illinois University Edwardsville Spring, 2008 Dr. Hiroshi Fujinoki FTP Protocol Programming.
AE6382 Secure Shell Usually referred to as ssh, the name refers to both a program and a protocol. The program ssh is one of the most useful networking.
The Secure Shell Copyright © Software Carpentry 2011 This work is licensed under the Creative Commons Attribution License See
REMOTE LOGIN. TEAM MEMBERS AMULYA GURURAJ 1MS07IS006 AMULYA GURURAJ 1MS07IS006 BHARGAVI C.S 1MS07IS013 BHARGAVI C.S 1MS07IS013 MEGHANA N. 1MS07IS050 MEGHANA.
Networking in Linux. ♦ Introduction A computer network is defined as a number of systems that are connected to each other and exchange information across.
APST Internals Sathish Vadhiyar. apstd daemon should be started on the local resource Opens a port to listen for apst client requests Runs on the host.
Configuring a LAN FTP Client Chapter 17 & 19. Setting up the physical layer Chapter 17 covers the basics of hubs, switches, routers and WAPs.
Produced;: Tartu Kutsehariduskeskus FTP – File Transfer Protocol Maarja Kask ACTION PROGRAMME OF THE EUROPEAN UNION LEONARDO DA VINCI PROJEKT NO.: 2002.
Team 6 Decrypting Encryption Jeffrey Vordick, Charles Sheefel, and Shyam Rasaily.
CheckPoint Reporting System for Seismic Surveys Setting Up for Multiple Users December 2012 Mid Point Geo Limited PO Box 7437 Reading Berkshire RG27 7HQ,
Unix Servers Used in This Class  Two Unix servers set up in CS department will be used for some programming projects  Machine name: eustis.eecs.ucf.edu.
Agenda Using FTP What is FTP? How to Use the FTP Program How to transfer files Using FTP.
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
Integrity Check As You Well Know, It Is A Violation Of Academic Integrity To Fake The Results On Any.
File Transfer Protocol (FTP) CIS 130. File Transfer Protocol (FTP) Copy files from one internet host (server) to your account on another host –Need domain.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
1 FTP: File Transfer Protocol EE 122: Intro to Communication Networks Fall 2006 Vern Paxson TAs: Dilip Antony Joseph and Sukun Kim
Integrity Check As You Well Know, It Is A Violation Of Academic Integrity To Fake The Results On Any.
SSH. 2 SSH – Secure Shell SSH is a cryptographic protocol – Implemented in software originally for remote login applications – One most popular software.
INTERNET APPLICATIONS CPIT405 Install a web server and analyze packets.
PuTTY Introduction to Web Programming Kirkwood Continuing Education by Fred McClurg © Copyright 2016, All Rights Reserved ssh client.
Secure services Unit-IV CHAP-1
Ssh: secure shell.
Andy Wang Object Oriented Programming in C++ COP 3330
FTP Lecture supp.
Part 3 – Remote Connection, File Transfer, Remote Environments
FTP - File Transfer Protocol
Getting SSH to Work Between Computers
File Transfer Olivia Irving and Cameron Foss
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
FTP and UNIX TOPICS Exploring your Web Hosting Site FTP UNIX
Accessing & Using NetStorage
SSH SSH is “Secure SHell” Secure, compressed, widely supported, fast
File Transfer Protocol
Logging into the linux machines
IMovie sits at the center of the iLife suite, integrating iTunes, iPhoto, and iDVD to help create professional-looking films with music, titles, and effects. 
DIBBs Brown Dog Tutorial Setup
Presentation transcript:

1 Automated SFTP Windows and SUN Linux and SUN

2 Vocabulary  Client = local=the machine generating the SFTP request  Server = remote = the machine willing and ready to accept the SFTP request

3 Why  Security!  Why since all traffic is behind the firewall? “only 14% of network security breaches originate outside the network “ Steve Solomon President and CEO of Citadel

4 WinSCP  Install WinSCP  Run WinSCP  Cache the host key Answer “Yes”

5 Command Line on Windows  Path to the executable  Log communication Helps with troubleshooting  Name of the script  Run at the DOS command prompt "Program Files\WinSCP\WinSCP.exe" /log="C:\sftplog" /script="C:\suntransfer.txt"

6 Script Windows to SUN The below script will place a copy of a file currently in the c:\ folder on the Windows machine, on to the user’s home directory on the SUN # Automatically answer all prompts negatively not to hang # the script on errors option batch on # Disable overwrite confirmations option confirm off # Connect using a password open # Change remote directory cd /home/ username # Set mode transfer option transfer ascii # Upload file from the local directory C:\ to $HOME put “C:\MYFILE” MYFILE # Disconnect close # Exit WinSCP exit

7 Script SUN to Windows The below script will place a copy of a file currently in the user’s home directory on the SUN, on to the c:\ folder on the Windows machine. # Automatically answer all prompts negatively not to abort # the script on errors option batch on # Disable overwrite confirmations option confirm off # Connect using a user name and password open # Change remote directory cd /home/ username # Set mode transfer option transfer ascii # Download file to the local directory C:\ from $HOME get MYFILE "C:\MYFILE" # Disconnect close # Exit WinSCP exit

8 SUN to Linux Basics  Linux must be running SFTP client/server  Network must allow traffic on port 22  Generate Key pairs  Place public key  Allows passwordless authentication  Command line scp  sftp with a batch file

9 Generate Key Pairs  On the client (linux) run:  Hit enter to answer all the prompts  This generated 2 files in your $HOME/.ssh directory:  Chmod on.ssh to 700  Chmod on id_dsa to 600 /opt/security/openssh3.1/bin/ssh-keygen -t dsa id_dsa id_dsa.pub

10 Place Public Key on Server (Sun)  copy the contents of id_dsa.pub to a file in your.ssh directory on to the Sun machine to a file named authorized_keys Use interactive sftp initiated on the client to do this Be sure contents is copied as one continuous line. Be sure the last part of the line is the string passed when you connect, such as: or $ sftp Connecting to Warning: Permanently added ' ' (DSA) to the list of known hosts. password: sftp> mkdir.ssh sftp> cd.ssh sftp> put /home/mysun/.ssh/id_dsa.pub authorized_keys Uploading /home/mysun/.ssh/id_dsa.pub to /home/mylinuxname/.ssh/authorized_keys /home/mysun/.ssh/id_dsa.pub 100% KB/s 00:00 sftp> bye

11 Command scp  Enter this command on the Linux System to transfer a file from the SUN to the Linux:  Enter this command on the Linux machine to get a file on the Linux box and place it on the SUN System  Or use SFTP with a batch file on the Linux box Batch file contents: Command to activate the batch file: scp /home/mylinuxname/myfile scp /home/mylinuxname/myfile get /home/mysunname/myfile /home/mylinuxname/myfile bye sftp –b /path/to/mybatchfile

12 Helpful Tip  If another version of SFTP is used on a windows machine, it may not deal with end of line very well.  Run dos2unix command on the SUN dos2unix badfile > goodfile