LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-30-2008, 11:45 AM   #1
nandonachi
LQ Newbie
 
Registered: Dec 2008
Posts: 13

Rep: Reputation: 0
problems with sshd


ive got ubuntu 8.10 and installed openssh-server from a .deb package,

now when i type sshd -p 2000 in terminal i get an error:

"sshd re-exec requires execution with an absolute path"

pls help

thanks in advance and a HAPPY NEW YEAR TO EVERYONE
 
Old 12-30-2008, 11:53 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
shouldn't that be
ssh -p 2000 xxx.xxx.xxx.xxx
 
Old 12-30-2008, 11:56 AM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Whenever a package is available in standard repositories of a distro (and ssh is available on probably every distro) it is recommended to use apt-get to install packages on Ubuntu. It will automatically make sure that all the dependencies are satisfied.
When you installed sshd from a .deb package, it should have enabled the sshd daemon automatically. To make sure it's on, type:
Quote:
/etc/init.d/sshd restart
As far as the syntax of ssh is concerned:

Quote:
ssh -p 2000 user@hostname
eg.
Quote:
ssh fred@192.168.1.12
ssh -p 2000 jim@hostname.com

Last edited by sycamorex; 12-30-2008 at 11:58 AM.
 
Old 12-30-2008, 02:34 PM   #4
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by nandonachi View Post
"sshd re-exec requires execution with an absolute path"
sshd is telling you how to solve the problem:
Code:
$ /usr/sbin/sshd -p 2000
 
Old 09-30-2013, 10:31 AM   #5
pburwell
LQ Newbie
 
Registered: Jun 2010
Location: PA, USA | NJ, USA
Distribution: RedHat 7
Posts: 22

Rep: Reputation: 0
Wink

Quote:
Originally Posted by David1357 View Post
sshd is telling you how to solve the problem:
Code:
$ /usr/sbin/sshd -p 2000
What this means is that your sshd_config file has the root remote ssh login permission off. You have to go to the server console and enable it (look for the "sshd_config.~1~" file). I always load nano because I despise VI.
Better yet, create another local user account and grant the same sudo access as root using visudo.

I ran into this problem when imaging with a preconfigured ISO for a client. They don't like enabling remote ssh for root.

Frankly I am surprised no one answered this in 6 years...
Opne other point, all this advice was to fix RedHat 6.3. - not sure if it applies with Ubuntu but take a look.

Last edited by pburwell; 09-30-2013 at 10:36 AM. Reason: spelling, clarity, grammar
 
  


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
Starting sshd: /etc/init.d/sshd: line 113: /usr/sbin/sshd: Permission denied sumanc Linux - Server 5 03-28-2008 04:59 AM
FC4-Starting sshd: Privilege separation user sshd does not exist FAILED kiranherekar Fedora 5 12-29-2005 02:22 PM
SSHd Problems jedediah Linux - Enterprise 1 08-08-2005 12:38 PM
sshd problems: scuzzy Linux - Software 8 07-29-2004 12:44 PM

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

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