LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-23-2020, 10:31 AM   #1
rjs1943
Member
 
Registered: Jan 2011
Posts: 55

Rep: Reputation: 3
Ssh, sftp etc


Hello All:

Can someone please explain in simple terms on how SSH and SFTP works. Can you use each separately or are they always used together? Online information isn't quit clear about this. very confusing to me. I use ssh server on my laptop occasionally and it works well. Some videos online speak both ssh and sftp in the same breath and that what confuses me.
I tried to use SFTP:// username ETC by it's self but wont connect.
Thank you.
 
Old 03-23-2020, 10:41 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,760

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by rjs1943 View Post
Hello All:
Can someone please explain in simple terms on how SSH and SFTP works. Can you use each separately or are they always used together? Online information isn't quit clear about this. very confusing to me. I use ssh server on my laptop occasionally and it works well. Some videos online speak both ssh and sftp in the same breath and that what confuses me.
I tried to use SFTP:// username ETC by it's self but wont connect.
You don't tell us what you did/tried (saying "username ETC" tells us nothing), so we can't say why you're having a problem, with what. You don't tell us the program you're using, how you're trying to access it, with any relevant details. You've been using Linux for nine years now, so it's odd that you haven't had more exposure with SSH, and odd that you can't find the VERY ample resources/examples available with a brief search. Very first hit for "linux sftp example":
https://linuxize.com/post/how-to-use...ransfer-files/

...which as a VERY clear command line for usage. Using it with things like Filezilla or other GUI's will most probably prompt you for a user ID/password, providing you select the right protocol. Connecting to SFTP is nearly identical to using old-style FTP, except SFTP gives you the option of doing a secure keyswap, so you don't have to enter passwords (if you'd like to; that's optional). SFTP is part of the SSH 'stack', along with SCP...they use one service, over one port. Again, AMPLE documentation/examples...you don't say what you've read or what you're confused about. And getting information from 'videos online' isn't usually a good source.
 
Old 03-23-2020, 10:51 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
by default, sftp is a subsystem of ssh.

From the client perspective they are separate commands but you can typically run them from different terminals at the same time.

From the server perspective sshd has to be running or sftp does not work.

You have not posted enough information as to how you are trying to connect.

What distribution is running on the server?
Is sshd running?
Does the firewall if running allow ssh traffic

What distribution is running on the client?
sftp:// would indicate you are trying to connect to the server using a file browser or maybe lftp. What file browser are you using?
Most browsers have a built in sftp client but some systems might require extra packages to be installed.

Last edited by michaelk; 03-23-2020 at 10:52 AM.
 
2 members found this post helpful.
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Restricting Users To SFTP Plus Setting Up Chrooted SSH/SFTP (Debian Squeeze) LXer Syndicated Linux News 0 09-06-2011 07:10 AM
how to create sftp user only in red hat 4 not ftp user ..only sftp user princeu28 Linux - Newbie 1 10-14-2008 08:10 AM
cannot login into SFTP server using Net::SFTP cccc Programming 1 10-31-2007 06:23 AM
How do I use sftp to upload my web site? (no sftp tar command) johnMG Linux - Networking 6 06-21-2005 09:14 PM
Files truncated by sftp/sftp-server at 65kb gato Linux - Networking 1 12-18-2003 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:34 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