LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-24-2015, 05:28 PM   #16
RobInRockCity
Member
 
Registered: Feb 2015
Posts: 141

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by suicidaleggroll View Post
If you're worried about it, don't use a drag and drop GUI. Do it from the command line where you're made aware of everything that happens.
If someone teaches me how to do that, I would consider it...

Don't I need "rsynch" or something like that to do that?

In fact, not to go off on a whole other topic, BUT, what is the best way for me to be backing up my VPS?

To me, I would want to do an "image" of my entire VPS, so if there were any issues, *everything* could be restored!!!

Since I have cPanel, I assume that the Backup app will do a good job at that?

(If there is a better way, I would consider it...)


Then after I back things up, can I simply use SCP, or do I need that rsynch thing or something else?

Sincerely,


Rob
 
Old 02-24-2015, 05:29 PM   #17
RobInRockCity
Member
 
Registered: Feb 2015
Posts: 141

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Miati View Post
Read through this to gain a understanding of the handshake of ssh.

ssh connecting or transmitting through plain-text would be against the foundation of it's design. It was designed to replace telnet which does transmit in plain-text.
Okay, I guess that makes sense...
 
Old 02-24-2015, 05:31 PM   #18
Miati
Member
 
Registered: Dec 2014
Distribution: Linux Mint 17.*
Posts: 326

Rep: Reputation: 106Reputation: 106
Quote:
Originally Posted by RobInRockCity View Post
Code:
scp hostname:file directory/
Is the reason that nothing else was needed is because SCP runs over SSH? (And if so, in my case, then I guess the whole SSH Key Authentication thing has to work, right?)
Yes - exactly.

From scp man page

Code:
scp copies files between hosts on a network.  It uses ssh(1) for data
     transfer, and uses the same authentication and provides the same security
     as ssh(1).  scp will ask for passwords or passphrases if they are needed
     for authentication.
Whatever it takes to login via ssh, will be the same for scp.

Any passwords will be asked after the command is run and if pub based key auth is used (with ssh-agent which securely stores credentials) no password is needed.

Yes, the link is stuffy, but you're asking about details of how ssh works. Take the time to read and understand it (and find other resources (man ssh perhaps) if it's not enough). If there is a part you don't get - feel free to ask about it

-----

rsync (not rsynch) is a method of backing up. It's designed to be a efficent method of making sure two directories are the same. It can actually use the ssh backend as well (that seems to occur a lot)
scp is another method.
in terminal, there are often multiple good solutions to everything. Unlike gui's, much of what is written in cli is meant to do one thing, and to do it well.
Quote:
If someone teaches me how to do that, I would consider it...
A lot of the information you want is on the web already, probably written in a manner far better then possibly written here. use the man pages and search engines to figure out the best method.

Last edited by Miati; 02-24-2015 at 05:37 PM.
 
Old 02-24-2015, 05:37 PM   #19
RobInRockCity
Member
 
Registered: Feb 2015
Posts: 141

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Miati View Post
From scp man page

Code:
scp copies files between hosts on a network.  It uses ssh(1) for data
     transfer, and uses the same authentication and provides the same security
     as ssh(1).  scp will ask for passwords or passphrases if they are needed
     for authentication.
Whatever it takes to login via ssh, will be the same for scp.
I have heard that SSH-1 is outdated and insecure...

Why not SSH-2?



Quote:
Originally Posted by Miati View Post
Yes, the link is stuffy, but you're asking about details of how ssh works. Take the time to read and understand it (and find other resources (man ssh perhaps) if it's not enough). If there is a part you don't get - feel free to ask about it
I'm trying to learn all of this as fast as I can. I just have an enormous amount on my plate - like getting a running website!!

Learning is coming in bits and pieces in between.

Thanks,


Rob
 
Old 02-24-2015, 05:39 PM   #20
Miati
Member
 
Registered: Dec 2014
Distribution: Linux Mint 17.*
Posts: 326

Rep: Reputation: 106Reputation: 106
Quote:
I have heard that SSH-1 is outdated and insecure...

Why not SSH-2?
This is from the man page, the (1) references to pages in the man page.

SSH-1 is indeed very insecure. Usage is not a good idea.
 
Old 02-24-2015, 05:51 PM   #21
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by RobInRockCity View Post
I have heard that SSH-1 is outdated and insecure...

Why not SSH-2?
The (1) refers to section 1 in the manual.
If you type "man 1 ssh" (or just "man ssh"), at the top you'll see SSH(1)

ssh only has one section in the manual that I'm aware of, but for comparison see:
man 1 printf
vs
man 3 printf

Last edited by suicidaleggroll; 02-24-2015 at 05:54 PM.
 
Old 02-24-2015, 05:58 PM   #22
RobInRockCity
Member
 
Registered: Feb 2015
Posts: 141

Original Poster
Rep: Reputation: Disabled
Is there a way for me to confirm that my installation is running SSH-2?

And is there a way for me to see if SSH-1 is turned off?


My VPS runs CentOS 6, and I do not currently have Root access.

Thanks,


Rob
 
Old 02-24-2015, 06:02 PM   #23
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Use the -v flag in your ssh command.

You can disabled v1 by editing /etc/ssh/ssh_config on your local machine and forcing Protocol to 2.
 
  


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
Downloading and Installing WebMin on RH Linux server using SSH session. linux_linux Linux - Networking 3 03-16-2008 08:09 AM
downloading nad ssh pako0 Linux - Networking 3 10-03-2006 07:28 PM
downloading and updating with ssh cb951303 Linux - Software 2 09-10-2005 07:51 AM
SSH Question about downloading files boreo Linux - Newbie 7 07-06-2004 01:16 AM
Downloading in SSH AMDPwred Linux - Software 5 03-06-2003 10:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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