LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-10-2005, 02:29 PM   #1
bison
LQ Newbie
 
Registered: Nov 2005
Posts: 3

Rep: Reputation: 0
SSH problem


Hi, I'm new to linux.... I have just installed Mandriva Linux. I thought SSH comes with it, but when I opened the terminal and typed SSH (host), it says command not found. So, I downloaded SSH, but I don't even know how to install it. I found a site that gives the command line: % tar zxvf ssh-3.0.1.tar.gz, but it says no such job... does that mean I have to install some other files??
 
Old 11-10-2005, 02:57 PM   #2
d3funct
Member
 
Registered: Jun 2001
Location: Centralia, WA
Posts: 274

Rep: Reputation: 31
No, you don't need to install other files. you need to cd to the directory where your tar/gzipped copy of ssh is located. Then first try tar -ztvf ssh-3.0.1.tar.gz , this assumes the name of your ssh package is ssh-3.0.1.tar.gz, since that's what you wrote in your post, if it is not, then put in the correct package name. This command will list all of the ssh files in the archive, and it should put them in a directory called something like ssh-3.0.1/. The reason you want to do this command is to see if it indeed will put them in a new directory. If you don't see a directory like ssh-3.0.1/ listed before the filename then you should create a directory called ssh-3.0.1 use mkdir ssh-3.0.1 and then move your tar file into it mv ssh-3.0.1.tar.gz ssh-3.0.1. Then cd ssh-3.0.1 and type tar -zxvf ssh-3.0.1.tar.gz and your tarfile should unzip and extract. Notice I put a - (dash) before the zxvf flags, this may be why your command didn't work. But if this syntax doesn't work, do gunzip ssh-3.0.1.tar.gz, and then tar -xvf ssh-3.0.1.tar and it should work. Once it's untarred read the readme files, and if it exists also read the INSTALL file to know how to install it. Basically install consists of configuring the program for installation by running ./configure, then creating the MakeFile(s) using the make command, and then creating the installation by runnin make install. Afterwhich you should be set to run a generic SSH. For detailed use of ssh/scp/sftp rtfm.
 
Old 11-10-2005, 03:03 PM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Also, did you literally type SSH in a console? You might wanna try ssh, because in Linux file names are case-sensitive. If you did try that already, then fair enough, just your post made it sound like you did only type "SSH".
 
Old 11-11-2005, 12:00 AM   #4
bison
LQ Newbie
 
Registered: Nov 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you very much for both of you!! I just got lost when I can't interpret the command.
d3funct, if you don't mind, can you tell me why putting a dash before it will make it work? or how do you know that's the exact command needed?? Thanks a bunch.
 
Old 11-11-2005, 10:28 AM   #5
d3funct
Member
 
Registered: Jun 2001
Location: Centralia, WA
Posts: 274

Rep: Reputation: 31
I don't know why the dash works on some systems and not on others. I've always used a dash on redhat based boxes and it's always worked fine for me.
 
Old 11-11-2005, 11:32 AM   #6
apepost
Member
 
Registered: Oct 2003
Distribution: Fedora core 4
Posts: 113

Rep: Reputation: 15
Quote:
How do you know that's the exact command needed??
Commands used here:

z: Gzipped file, you can tell this from the ending (gz).
x: Extract. Tells tar to extract the file.
v: Verbose. gives you more info. Useful if something goes wrong.
f: tells tar what file to use, needs to be directly followed by the filename.

Other useful commands:

j: Bz2 compressed file. This is for files that end with (bz2).

Else:

Doesn't mandriva have some sort of packet manager?
 
Old 11-11-2005, 12:05 PM   #7
d3funct
Member
 
Registered: Jun 2001
Location: Centralia, WA
Posts: 274

Rep: Reputation: 31
You can type "man tar" to see all of the flags and different examples on how to use this command. It is very versatile.
 
Old 12-09-2005, 06:48 AM   #8
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Different flavors of "tar" support or don't support the "-" before the option.
GNU tar is currently the most common one (on Linux) and supports both with and without the "-".

"man tar" would be a good idea to start

I think Mandriva support RPMs as well. RPMs are packages, like the .tar.gz, but you can install them without
explicit compilation (eg make; make install; etc).
You can find RPM packages for Mandriva at rpmfind.net, the Mandriva home page (probably), rpm.pbone.net, via Google, etc.
Be sure to look for your kind of Mandriva Linux (there are RPMs for all kinds of Linux).
After downloading them, installing is easy. Let's say you downloaded xyz.rpm to /home/you/Installs/.
open terminal
cd /home/you/Installs/
rpm -i xyz.rpm

Uninstalling: use "rpm -e --repackage xyz" instead of "rpm -i".
See also:
man rpm
 
  


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
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
ssh problem UmneyDurak Fedora 4 04-27-2005 08:02 PM
SSH problem nukey Slackware 9 12-26-2004 10:23 AM
SSH problem silver2003 Linux - Security 2 09-30-2004 03:05 PM
SSH-Problem pemo Linux - Networking 0 07-08-2003 07:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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