Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-06-2006, 10:15 PM   #1
Registered: Dec 2002
Distribution: slackware!
Posts: 497

Rep: Reputation: 88
how to install software on remote pc using putty/ssh

i'm trying to set up a file server with no mouse, keyboard or monitor connected, i can putty/ssh to the box, i can transfer data to and from it from other computers

i copied some software over to it, tried to ./configure and it says ": bad interpreter: No such file or directory", some auth putty config option i'm missing?

thank you
Old 07-06-2006, 11:24 PM   #2
Registered: May 2004
Location: Atlanta, GA USA
Distribution: Redhat ES4, FC4, FC5, slax, ubuntu, knoppix
Posts: 155

Rep: Reputation: 30
Sounds like you don't have access to the correct paths. Are you loggin in as root?
Old 07-07-2006, 07:46 AM   #3
Registered: Dec 2002
Distribution: slackware!
Posts: 497

Original Poster
Rep: Reputation: 88
yes logged in as root, echo $PATH shows all the paths, thanks
Old 07-07-2006, 07:57 AM   #4
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Did you do a full install of whatever distro you're using? If you did, then it's possible that the software you're trying to install either had a bad download or there is some other issue. More details would definitely be helpful.

A user accessing through putty should have exactly the same permissions and capabilities as if they were accessing locally, so I'm guessing this problem isn't putty related.
yes logged in as root, echo $PATH shows all the paths, thanks
Just a suggestion, but it is usually a bad idea to allow root to be able to log in via ssh. If you're logged in as a normal user and then using su to be root, then ignore this comment.
Old 07-07-2006, 08:23 AM   #5
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
There is a config option in /etc/sshd_config to not allow root login. If you are the only user who logs in using ssh, I would recommend adding your user name to AllowUsers. If you use AllowUsers, you don't need to add each system user to DenyUsers and each system group to DenyGroups. They are denied because they are not allowed.
Please read the "man 5 sshd_config" man page.

You might see that error when you are trying to compile a program in the wrong directory.
It is usually best to download the tarball somewhere in your home directory. Expand it their, read the README file and INSTALL file, then run "./configure" and "make" as a normal user (I also run "make ps" or "make dvi" or "make pdf" if available to produce print worthy documentation from the .texi source that produces the .info files), and then su to root to perform the "make install" phase. I have a couple of times run into some tarball installations where the ./configure or make phases would actually fail if run as root due to PATH differences.

You should have posted more of the error message. It is traditional for the source of the message to be listed before the colon.

You said that you are using putty. If you are connecting using a windows machine, be careful about having any scripts that are edited in windows because the [CR][LF] pair that windows uses will cause failures in scripts and in config files. This can also occur if you ftp get a file or copy a file to a windows machine. There may be some translation done in text mode.

In the least, I would recommend installing cygwin/X on your windows machine. It includes ssh I believe. You would also have access to programs like grep, awk, sed. I have found Cygwin to be invaluable at work. Searching through hundreds of schedules for a certain pattern, or using less on a log file and highlighting certain patterns makes life so much easier using *nix text tools.
Old 07-07-2006, 09:01 AM   #6
Registered: Dec 2002
Distribution: slackware!
Posts: 497

Original Poster
Rep: Reputation: 88
you're right jschiwal, i had the folder of the software i was trying to install unzipped on my windows box, i transferred that folder to my linux box and tried to install from there

looking at the configure file, ^M was on every line of the file, i know better, i always download, unpack and install in linux, it was late, i clearly wasnt thinking

thanks everyone


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
Tell Me About Remote Desktop, VNC, SSH, Laplink and Other Software Like It Mehmoodoman General 2 06-10-2006 03:59 PM
Problem with remote terminal (ssh and PuTTY) guardian653 *BSD 11 02-09-2005 07:16 AM
how to remote download file by putty SSH? treotan Linux - Newbie 5 08-02-2004 11:47 PM
Putty SSH remote desktop Solved learner_driver Linux - Networking 1 07-05-2004 04:02 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration