LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-31-2005, 02:25 PM   #1
Jzarecta
Member
 
Registered: Dec 2005
Location: Villahermosa, Bucharest, Birminham, Brooklyn, Beverly
Distribution: Mandriva
Posts: 118

Rep: Reputation: 15
Talking Using sshftp


I want to use sftp to exchange files within a network. I use this using gnome Placs > Connect to server > SSH connection however I dont know if this is the command line.

The command line is very useful and using some app like midnight commander or something else.
 
Old 12-31-2005, 04:18 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
First you may need to generate your key then;
This is just an example
Code:
$ ssh-keygen -t dsa -C "USERNAME@shell.sf.net"
Generating public/private dsa key pair.
Enter file in which to save the key (/home/username/.ssh/id_dsa):
Created directory '/home/username/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/username/.ssh/id_dsa.
Your public key has been saved in /home/username/.ssh/id_dsa.pub.
The key fingerprint is:
f3:31:a8:c6:82:18:c8:0f:dd:6b:fb:27:98:83:3d:3b USERNAME@shell.sf.net
then you log in and I use ls or pwd to see where I'm at then
Code:
Transferring a file to a SourceForge.net host:
$ sftp USERNAME@HOSTNAME
put PATH_TO_FILE_TO_SEND
exit

Transferring a file from a SourceForge.net host
$ sftp USERNAME@HOSTNAME
get PATH_TO_FILE_TO_RECEIVE
exit
This may help;
http://www.cs.utah.edu/support/faq/f...etransfer.html
 
Old 01-01-2006, 12:49 PM   #3
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
So you also need to move the .pub key to the remote machine, into the remote login user's home directory as ~/.ssh/authorized_keys2
eg scp ~/.ssh/id_dsa.pub server:/.ssh/authorized_keys2

Then it is a passwordless connection..
 
Old 01-01-2006, 12:49 PM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
So you also need to move the .pub key to the remote machine, into the remote login user's home directory as ~/.ssh/authorized_keys2
eg scp ~/.ssh/id_dsa.pub server:/.ssh/authorized_keys2

Then it is a passwordless connection..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration