LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 02-24-2010, 05:25 AM   #1
kamrinjacobs
LQ Newbie
 
Registered: Feb 2010
Posts: 4

Rep: Reputation: 0
How does ssh remote login work?


Hi... After reading up about ssh, I understand that it's a protocol used for sending encrypted data over a network. However, I don't understand what's going on when I login to my Ubuntu PC
using ssh [over the network]. How does the ssh client application 'know' that it has to take input from one computer
and pass it to the other?

EDIT; To put it another way, one could send a mp3 file over ssh right? So instead of the file, what tell the ssh client that the input and output of the computers is what has to be sent?
 
Old 02-24-2010, 06:03 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,157

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
When you login into your Ubuntu PC you are using a remote shell i.e. its the same thing as typing in commands in a console window as if you are sitting behind the computer itself. In a nutshell ssh is a client/server application, i.e. the client sends commands (whatever you type) to the server and the server executes those commands and sends the results back.

ssh is a remote shell only. If you want to transfer files then you need to use either a secure FTP console application like scp,sftp or some GUI app like gFTP.
 
1 members found this post helpful.
Old 02-24-2010, 09:58 AM   #3
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,467
Blog Entries: 11

Rep: Reputation: 184Reputation: 184
Quote:
Originally Posted by kamrinjacobs View Post
EDIT; To put it another way, one could send a mp3 file over ssh right? So instead of the file, what tell the ssh client that the input and output of the computers is what has to be sent?
The programmer told it to do so

It something like a remote login. The client connects to the server and gets a terminal (tty) assigned to it. After this it's just like sitting in front of the machine. You type -> SSH clients tells -> SSH Server -> Shell executes commands -> Output of shell is sent to ssh client which displays it for you.

Something like this....
 
Old 02-24-2010, 03:31 PM   #4
framp
Member
 
Registered: Apr 2003
Location: Stuttgart, BW Germany
Distribution: SuSE 10.3-11.0, Knoppix, Ubuntu 8.10, Fedora 10
Posts: 119
Blog Entries: 5

Rep: Reputation: 15
Quote:
Originally Posted by kamrinjacobs View Post
EDIT; To put it another way, one could send a mp3 file over ssh right? So instead of the file, what tell the ssh client that the input and output of the computers is what has to be sent?
ssh ist just a channel to acces a remote console. BUT - it also can be used to forward unsecure traffic on a secure channel (X forwarding). If you want to copy files from A to B you should use scp.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
remote login via ssh (without interaction) vdx Programming 6 09-27-2007 03:52 PM
Remote login with SSH, but display on remote computer. brodin Linux - Software 3 09-09-2007 04:01 AM
ssh remote login sKAApGIF Linux - Networking 4 11-22-2006 08:13 AM
ssh remote login help LAdProg2005 Linux - Networking 2 10-05-2005 01:39 PM
I need remote login/ ssh/ whatever BryanMC Linux - General 6 05-26-2003 12:09 PM


All times are GMT -5. The time now is 01:35 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration