LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-26-2007, 09:51 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
SSH problem


Hi folks,

server
Ubuntu 7.04 server amd64
(router IP - 192.168.0.11)

workstation
Ubuntu 7.04 desktop i386
(router IP - 192.168.0.12)


Server can connect the workstation and browse remotely with;
$ ssh -Y satimis@192.168.0.12 rox

But workstation can't connect the server with;
$ ssh -Y satimis@192.168.0.11 nano
Code:
ssh: connect to host 192.168.0.11 port 22: Connection refused
Server
# cat /etc/ssh/ssh_config
Code:
Host *
#   ForwardAgent no
#   ForwardX11 no
#   ForwardX11Trusted yes
#   RhostsRSAAuthentication no
#   RSAAuthentication yes
    PasswordAuthentication yes
#   HostbasedAuthentication no
#   BatchMode no
#   CheckHostIP yes
#   AddressFamily any
#   ConnectTimeout 0
#   StrictHostKeyChecking ask
#   IdentityFile ~/.ssh/identity
#   IdentityFile ~/.ssh/id_rsa
#   IdentityFile ~/.ssh/id_dsa
    Port 22
#   Protocol 2,1
#   Cipher 3des
#   Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc
#   EscapeChar ~
#   Tunnel no
#   TunnelDevice any:any
#   PermitLocalCommand no
    SendEnv LANG LC_*
    HashKnownHosts yes
    GSSAPIAuthentication yes
    GSSAPIDelegateCredentials no

Secondly unable to restart ssh
$ sudo /etc/init.d/ssh restart
Password:
sudo: /etc/init.d/ssh: command not found


$ ls /etc/init.d/ | grep ssh
No printout

$ which ssh
/usr/bin/ssh
ssh is running.


Please help


B.R.
satimis
 
Old 07-26-2007, 10:23 AM   #2
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
you don't want to start ssh but sshd.

"Connection refused" means either sshd isn't running or it is firewalled off by iptables.
 
Old 07-26-2007, 10:24 AM   #3
redgoblin
Member
 
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 189

Rep: Reputation: 41
Does the server actually have sshd on it or just the client?
 
Old 07-26-2007, 10:29 AM   #4
karelvdm
Member
 
Registered: Sep 2004
Location: Pietermaritzburg South Africa
Distribution: Home:OpenSuse 11, Office:FreeBSD 7 PBX:Trixbox 2 (CentOS 4.4) Home Automation : LinuxMCE
Posts: 123

Rep: Reputation: 15
Hi,

Edit the sshd config file - /etc/ssh/sshd_config
Uncomment the line
Code:
 # Authentication:

#LoginGraceTime 2m
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
restart sshd
Code:
Dragon:~ # /etc/init.d/sshd restart
Shutting down SSH daemon                                             done
Starting SSH daemon                                                  done
Dragon:~ #
Hope it helps
 
Old 07-26-2007, 10:36 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi folks,


Tks for your advice.


Sorry, I haven't installed openssh-server


$ sudo apt-get install openssh-server
went through w/o complaint,

$ sudo /etc/init.d/ssh restart
* Restarting OpenBSD Secure Shell server... [ OK ]


On workstation;
$ ssh -Y satimis@192.168.0.11 rox
satimis@192.168.0.11's password:

Rox starts with only the vmware folder displayed.


B.R.
satimis
 
  


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 - ssh-add not respond FerkoPica Linux - Security 6 05-07-2006 03:47 PM
Passwordless SSH with SSH commercial server and open ssh cereal83 Linux - General 7 04-18-2006 12:34 PM
ssh problem after creating an ssh alias. porotothorpe Linux - General 2 01-25-2006 07:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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