473,748 Members | 2,227 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

using SSh problem!


I want to connect form a windows machine to a Linux one using SSH (I use
Paramiko) and simply copy a file to Linux machine.
Would you please help me how should I start?
Is there any useful code?

--
View this message in context: http://www.nabble.com/using-SSh-prob...p19775680.html
Sent from the Python - python-list mailing list archive at Nabble.com.

Oct 2 '08 #1
7 1335
In message <ma************ *************** ***********@pyt hon.org>, sa6113
wrote:
I want to connect form a windows machine to a Linux one using SSH (I use
Paramiko) and simply copy a file to Linux machine.
Do you want to be able to connect without having to enter a password? You'll
need to set up a public/private key pair for that.
Oct 2 '08 #2

No, my problem isn't entering password or not ?
I want to know what should I do to connect between different platform and
copy a file .

Lawrence D'Oliveiro wrote:
>
In message <ma************ *************** ***********@pyt hon.org>, sa6113
wrote:
>I want to connect form a windows machine to a Linux one using SSH (I use
Paramiko) and simply copy a file to Linux machine.

Do you want to be able to connect without having to enter a password?
You'll
need to set up a public/private key pair for that.
--
http://mail.python.org/mailman/listinfo/python-list

--
View this message in context: http://www.nabble.com/using-SSh-prob...p19776775.html
Sent from the Python - python-list mailing list archive at Nabble.com.

Oct 2 '08 #3
sa6113 wrote:
No, my problem isn't entering password or not ?
I want to know what should I do to connect between different platform and
copy a file .
Did you try searching? This looks hopeful:

http://commandline.org.uk/python/200...8/sftp-python/

TJG
Oct 2 '08 #4
sa6113 wrote:
I want to connect form a windows machine to a Linux one using SSH (I use
Paramiko) and simply copy a file to Linux machine.
Would you please help me how should I start?
For starters, I'd take a look at 'scp'. Other than that, what does the
question you asked have to do with Python?

Uli

--
Sator Laser GmbH
Geschäftsführ er: Thorsten Föcking, Amtsgericht Hamburg HR B62 932

Oct 2 '08 #5

One of the Python implementations of SSH is called Paramiko.
Ulrich Eckhardt wrote:

sa6113 wrote:
>I want to connect form a windows machine to a Linux one using SSH (I use
Paramiko) and simply copy a file to Linux machine.
Would you please help me how should I start?
For starters, I'd take a look at 'scp'. Other than that, what does the
question you asked have to do with Python?

Uli

--
Sator Laser GmbH
Geschäftsführ er: Thorsten Föcking, Amtsgericht Hamburg HR B62 932

--
http://mail.python.org/mailman/listinfo/python-list
--
View this message in context: http://www.nabble.com/using-SSh-prob...p19777590.html
Sent from the Python - python-list mailing list archive at Nabble.com.

Oct 2 '08 #6
On Oct 2, 3:27*am, sa6113 <s.payan...@gma il.comwrote:
No, my problem isn't entering password or not ?
I want to know what should I do to connect between different platform and
copy a file .

Lawrence D'Oliveiro wrote:
In message <mailman.1881.1 222937896.3487. python-l...@python.org >, sa6113
wrote:
I want to connect form a windows machine to a Linux one using SSH (I use
Paramiko) and simply copy a file to Linux machine.
Do you want to be able to connect without having to enter a password?
You'll
need to set up a public/private key pair for that.
--
http://mail.python.org/mailman/listinfo/python-list

--
View this message in context:http://www.nabble.com/using-SSh-prob...p19776775.html
Sent from the Python - python-list mailing list archive at Nabble.com.
I do it by wrapping "plink".

http://www.chiark.greenend.org.uk/~sgtatham/putty/

I believe you can also install a version of OpenSSH on Windows.

~Sean
Oct 2 '08 #7
sa6113 wrote:
I want to connect form a windows machine to a Linux one using SSH (I use
Paramiko) and simply copy a file to Linux machine.
Would you please help me how should I start?
Is there any useful code?
I find that one of the easiest ways of doing this is to install Cygwin on the
windows machine, then you have all the Linux capabilities under Windows. Open
Cygwin console and you can use ssh, scp, etc. to connect to Linux box, copy a
file, etc. All with ssh security.

-Larry
Oct 3 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4445
by: Jon Dellaria | last post by:
I have been using MySql as the database using JSP's and JavaBeans but recently I have wanted to start using the database connection pooling mechanism built into TomCat. I think I am having a problem with defining my JDBC resource within Tomcat. I am pretty sure that my code is correct (but I am not certain), and the problem is with defining the resource in Tomcat. Has anyone done this before? Any advice would be helpful.
13
141253
by: Squid Seven | last post by:
This is just bizarre. for the following snippet of code: #include <string> using std::string; I get the error message:
4
5494
by: John Morgan | last post by:
I have Enterprise Manager on my local machine. For the last twelve months it has been connecting without problem to my online SQL Server database provided by my ISP. Three weeks ago the ISP applied some sort of extra security arrangements to their SQL Server to allow access only through port 1433. they have told me to configure an alias using Network Client and to register this alias in the usual way using my Enterprise Manager. My...
19
4107
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate the code that implements managing unbound controls on forms given the superior performance of unbound controls in a client/server environment. I can easily understand a newbie using bound controls or someone with a tight deadline. I guess I need...
11
6598
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on where the job is running, the job runs sucessfully, PDF files got generated, everything is good. If I scheduled the job to run at the time that I am not logged into the server, Access is not able to print to the printer. The error is pretty...
12
2062
by: bj7lewis | last post by:
I am working on a project I want to add a few files as resource to access(copy them to FS and use) at runtime. So far in VS.NET IDE, I Add Files to the project and set its Build Action to Embedded Resource... Now where should look next... Any help...
5
2735
by: IkBenHet | last post by:
Hello, I use this script to upload image files to a folder on a IIS6 server: ******************* START UPLOAD.ASPX FILE ********************** <%@ Page Language="VB" Debug="true" %>
15
4777
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update button will verify the information that has been entered and updates the data base if the data is correct. Update will throw an exception if the data is not validate based on some given rules. I also have a custom error handling page to show the...
3
5082
by: Michael Hoehne | last post by:
Hi, I'm currently facing a problem with a mixed environment using .NET 1.1 and ..NET 2.0 web services. We have a client application (the "client", system 1) running on .NET 2.0/WinXP, calling our web service (The "Web Service Server") running on a separate machine (also .NET 2.0, Win2003 Server, system 2). The web service server (system 2) itself makes calls to methods in the CRM
0
2208
by: Metal2You | last post by:
I'm working on an ASP.NET 2.0 application in Visual Studio 2005 that accesses a Sybase database back end. We're using Sybase SQL Anywhere 9.0.2.3228. I have installed and registered the Sybase .NET 2.0 DataProvider (iAnywhere.Data.AsaClient.dll) into the GAC so it can be used in the ProviderName property of a SQLDataSource and loads properly at run time. The application I'm writing is a bit more complex than the example I'm about to...
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9552
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9326
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.