D'oh!

Dave Germiquet davegermiquet-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Wed Jan 16 22:38:51 UTC 2008


Hi,

Do you have SSH installed on  this system:

192.168.0.2

Have you tried sshing into the 192.168.0.2 without a problem?

Try this and see if it succeeds:

ssh -l <user name> 192.168.0.2

It says the connection refused so im thinking the openssh server is not running.



On Jan 16, 2008 2:10 PM,  <chris-n/jUll39koHNgV/OU4+dkA at public.gmane.org> wrote:
> Lennart Sorensen writes:
>
> > On Fri, Jan 11, 2008 at 06:11:57PM -0500, chris-n/jUll39koHNgV/OU4+dkA at public.gmane.org wrote:
> >> devon at devon:~$ sudo apt-get install ssh-server
> >> [sudo] password for devon:
> >> Reading package lists... Done
> >> Building dependency tree
> >> Reading state information... Done
> >> Package ssh-server is a virtual package provided by:
> >> openssh-server 1:4.6p1-5ubuntu0.1
> >> lsh-server 2.0.2-1.1
> >> You should explicitly select one to install.
> >> E: Package ssh-server has no installation candidate
> >> devon at devon:~$ sudo apt-get install openssh-server 1:4.6p1-5ubuntu0.1
> >
> > If you want to specify a version, put an = between the packagename and
> > version.
> >
> > In your case all you have to do is:
> >
> > apt-get install openssh-server
>
> Okay, I tried to do that and was advised to other stuff first:
>
> devon at devon:~$ sudo apt-get install openssh-server
> [sudo] password for devon:
> E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to
> correct the problem.
> devon at devon:~$ sudo dpkg --configure -a
> Setting up java-common (0.26ubuntu1) ...
>
> Setting up odbcinst1debian1 (2.2.11-16) ...
>
> Setting up unixodbc (2.2.11-16) ...
>
> Setting up gcc-3.3-base (1:3.3.6-15ubuntu2) ...
> Setting up libstdc++5 (1:3.3.6-15ubuntu2) ...
>
> Processing triggers for libc6 ...
> ldconfig deferred processing now taking place
> devon at devon:~$ sudo apt-get install openssh-server
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> You might want to run `apt-get -f install' to correct these:
> The following packages have unmet dependencies:
>  openssh-server: Depends: openssh-client (= 1:4.6p1-5ubuntu0.1) but
> 1:4.6p1-5build1 is to be installed
>  sun-java6-jre: Depends: sun-java6-bin (= 6-03-0ubuntu2) but it is not going
> to be installed or
>                          ia32-sun-java6-bin (= 6-03-0ubuntu2) but it is not
> installable
> E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify
> a solution).
> devon at devon:~$ sudo apt-get -f install
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Correcting dependencies... Done
> The following extra packages will be installed:
>  sun-java6-bin sun-java6-jre
> Suggested packages:
>  binfmt-support sun-java6-plugin ia32-sun-java6-plugin sun-java6-fonts
> Recommended packages:
>  gsfonts-x11
> The following NEW packages will be installed:
>  sun-java6-bin
> The following packages will be upgraded:
>  sun-java6-jre
> 1 upgraded, 1 newly installed, 0 to remove and 122 not upgraded.
> 1 not fully installed or removed.
> Need to get 0B/32.7MB of archives.
> After unpacking, 93.6MB of additional disk space will be used.
> Do you want to continue [Y/n]? Y
> Preconfiguring packages ...
> (Reading database ...
> dpkg: serious warning: files list file for package `sun-java6-jre' missing,
> assuming package has no files currently installed.
> 105054 files and directories currently installed.)
> Unpacking sun-java6-bin (from .../sun-java6-bin_6-03-0ubuntu2_i386.deb) ...
> Preparing to replace sun-java6-jre 6-03-0ubuntu2 (using
> .../sun-java6-jre_6-03-0ubuntu2_all.deb) ...
> sun-dlj-v1-1 license has already been accepted
> Unpacking replacement sun-java6-jre ...
> Setting up sun-java6-bin (6-03-0ubuntu2) ...
> No theme index file in '/usr/share/icons/sun-java6.png'.
> If you really want to create an icon cache here, use --ignore-theme-index.
>
> Setting up sun-java6-jre (6-03-0ubuntu2) ...
>
> devon at devon:~$ sudo apt-get install openssh-server
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following extra packages will be installed:
>  openssh-client
> Suggested packages:
>  libpam-ssh keychain rssh molly-guard
> The following NEW packages will be installed:
>  openssh-server
> The following packages will be upgraded:
>  openssh-client
> 1 upgraded, 1 newly installed, 0 to remove and 121 not upgraded.
> Need to get 904kB of archives.
> After unpacking, 655kB of additional disk space will be used.
> Do you want to continue [Y/n]? Y
> Get:1 http://security.ubuntu.com gutsy-security/main openssh-client
> 1:4.6p1-5ubuntu0.1 [656kB]
> Get:2 http://security.ubuntu.com gutsy-security/main openssh-server
> 1:4.6p1-5ubuntu0.1 [247kB]
> Fetched 904kB in 20s (43.1kB/s)
> Preconfiguring packages ...
> (Reading database ... 105962 files and directories currently installed.)
> Preparing to replace openssh-client 1:4.6p1-5build1 (using
> .../openssh-client_1%3a4.6p1-5ubuntu0.1_i386.deb) ...
> Unpacking replacement openssh-client ...
> Selecting previously deselected package openssh-server.
> Unpacking openssh-server (from
> .../openssh-server_1%3a4.6p1-5ubuntu0.1_i386.deb) ...
> Setting up openssh-client (1:4.6p1-5ubuntu0.1) ...
>
> Setting up openssh-server (1:4.6p1-5ubuntu0.1) ...
> Creating SSH2 RSA key; this may take some time ...
> Creating SSH2 DSA key; this may take some time ...
> * Restarting OpenBSD Secure Shell server sshd
> [ OK ]
>
> After all that I still can't use scp:
>
> devon at devon:~$ sudo scp /home/devon/darepromise.odt
> 192.168.0.2:/home/chris/Desktop
> ssh: connect to host 192.168.0.2 port 22: Connection refused
> lost connection
>
> I can ping that computer though:
> devon at devon:~$ ping 192.168.0.2
> PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
> 64 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=0.198 ms
> 64 bytes from 192.168.0.2: icmp_seq=2 ttl=64 time=0.187 ms
> 64 bytes from 192.168.0.2: icmp_seq=3 ttl=64 time=0.185 ms
> 64 bytes from 192.168.0.2: icmp_seq=4 ttl=64 time=0.181 ms
> 64 bytes from 192.168.0.2: icmp_seq=5 ttl=64 time=0.182 ms
> 64 bytes from 192.168.0.2: icmp_seq=6 ttl=64 time=0.182 ms
> ^C64 bytes from 192.168.0.2: icmp_seq=7 ttl=64 time=0.188 ms
> 64 bytes from 192.168.0.2: icmp_seq=8 ttl=64 time=0.182 ms
> 64 bytes from 192.168.0.2: icmp_seq=9 ttl=64 time=0.184 ms
> 64 bytes from 192.168.0.2: icmp_seq=10 ttl=64 time=0.187 ms
>
>  --- 192.168.0.2 ping statistics ---
> 10 packets transmitted, 10 received, 0% packet loss, time 8999ms
> rtt min/avg/max/mdev = 0.181/0.185/0.198/0.015 ms
> devon at devon:~$
>
> Chris
>
>
> > --
> > Len Sorensen
> > --
> > The Toronto Linux Users Group.      Meetings: http://gtalug.org/
> > TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> > How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
>
>
> --
> The Toronto Linux Users Group.      Meetings: http://gtalug.org/
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
>
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list