LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-12-2004, 02:02 AM   #1
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
need a step by step on sftp via SSH please


ok i have a laptop running RH9 and a desktop running Debian Sarge and a winXP pro box at the house.

my laptop is just something i use for moving around with and will often take with me and swap big files like TV shows and what not with friends.

when i come home i have to use winSCP to pull the files off my laptop and put them on XP so i can get access to them on my debian box (this is a media box that i play the TV shows on) i know there is a way to dirrectly connect to my laptop from my deiban box via SSH (i use putty all the time for basic stuff) and i have read that there is CLI for sFTP.

i dont get how it works.

i need some real basic steps on how to ssh from debian to laptop and start the sftp transfer via ssh from the laptop to the desktop.

by basic i mean type: exactly what to type

example:

to mount a windows share on a linux box type the following:

first make a new directory that you will mount the share into:
Code:
mkdir /path/to/new/share_mount
smbmount //IP/share_name /full/path/to/mount/on/*nix/box
that level of detail. if you want to explain the why after the how, that would be nice too, but for now the how will be great.

Thank you for your time.
 
Old 11-12-2004, 02:13 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
I suppose you have sshd running on the machine you want to connect to...if it's not, start it (I'm pretty sure you can do this, if you have it running on your other machine too, where you connect via putty as you said..)

test to see if it runs:
Code:
ps -e |grep sshd
now if you got some process, it's on. now make sure your /etc/hosts.allow and /etc/hosts.deny don't have anything that might keep you out of your box (ie hosts.deny does _not_ deny your machine's from connecting, but hosts.allow enables them. if both files are empty, or hosts.deny is empty, then you're ok).

then go to the box you want to connect from. type

Code:
ssh username@address
to connect - username is the username on the machine you want to connect to, that you use, and address is simply the ip-address (or if they're in ethernet, the machine name that is found in /etc/hosts I think) of the machine you connect to. to use sftp instead, run

Code:
sftp username@address
so it works just the same - but instead of a normal command prompt, you get a line like this:

sftp>

where you type the sftp commands. like help for example...

Code:
sftp> help
and that's it. just make sure that:

1) on the host machine, sshd is running
2) on the host machine, /etc/hosts.allow and hosts.deny are configured ok
3) on the host machine, sshd's config is okay (try: locate sshd |grep conf)
4) on the host machine, no firewall is blocking you
5) on the client machine, you have ssh installed
6) on both machines the keypairs for ssh have been created (google for help if you haven't...but if you can use ssh, then they are)

well, my lessons continue now...so can't help any more atm I'll get back to this later, perhaps only after this weekend (sorry), but you should do with this help. use google if you can't figure something out (a command, for example)...
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Step-By-Step Instruction to install Linksys WPC11 Ver.4 Wireless Card Zypher Linux - Hardware 8 08-12-2009 10:43 AM
Step by Step guied for Installation pent@net Dvb card under linux mobassir Linux - Networking 4 06-07-2006 07:31 PM
I need a step by step help to instal Suse 9.3 Pro on the same hdd as XP Home & 2003 suse91pro Linux - General 4 09-07-2005 01:15 PM
Step-by-step instructions setting up RSA Authentication for SSH? houler Linux - Security 16 04-27-2005 07:08 AM
Step-by-Step: Making integrated Broadcome wireless adapter work with Mandrake 9.2 jmp875 Linux - Wireless Networking 16 06-30-2004 12:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:25 PM.

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