Re: scp/connection refused

2014-10-31 Thread Michael Havens
computer 'a' $ sudo ufw status verbose [sudo] password for bmike1: Status: active Logging: on (low) Default: deny (incoming), allow (outgoing), disabled (routed) New profiles: skip computer 'a' $ ip addr inet 192.168.0.14/24 brd 192.168.0.255 scope global eth0 computer 'b' $ sudo ufw status

Re: scp/connection refused

2014-10-31 Thread sean
So the server is running on both. What about the output of: sudo ufw status verbose on both computers? As well as: ip addr ? Make sure you're trying to connect to the right address. On Fri, Oct 31, 2014 at 3:08 PM, Michael Havens wrote: > my distro is mint and the error is connection refused. >

Re: scp/connection refused

2014-10-31 Thread Michael Havens
my distro is mint and the error is connection refused. computer a $ sudo netstat -tpan | grep LISTEN [sudo] password for bmike1: tcp0 0 127.0.1.1:530.0.0.0:* LISTEN 1592/dnsmasq tcp0 0 0.0.0.0:22 0.0.0.0:* LISTEN

Re: scp/connection refused

2014-10-31 Thread sean
You need to give more details. Why can't you ssh from b to a? What's the error? What distributions? 1 - install ssh server 2 - start the service 3 - deal with firewalls 4 - ssh with a valid user What's the output of: netstat -tpan | grep LISTEN on both computers? On Fri, Oct 31, 2014 at 2:55 PM

Re: scp/connection refused

2014-10-31 Thread Michael Havens
I didn't modify the firewall or the ssh port. :-)~MIKE~(-: On Fri, Oct 31, 2014 at 2:52 PM, Sesso wrote: > What do your firewall rules look like? Are you allowing in and out on port > 22? > > Sent from my iPhone > > > On Oct 31, 2014, at 2:44 PM, Michael Havens wrote: > > > > 'openssh-server'

Re: scp/connection refused

2014-10-31 Thread Sesso
What do your firewall rules look like? Are you allowing in and out on port 22? Sent from my iPhone > On Oct 31, 2014, at 2:44 PM, Michael Havens wrote: > > 'openssh-server' is installed on both computers > 'ssh localhost' works on both computers > I can only scp from computer 'a' to computer 'b

scp/connection refused

2014-10-31 Thread Michael Havens
'openssh-server' is installed on both computers 'ssh localhost' works on both computers I can only scp from computer 'a' to computer 'b' not computer 'b' to computer 'a'. Would someone help me to get it to work computer 'b'to computer 'a'? :-)~MIKE~(-: --

Re: scp connection refused

2014-04-10 Thread Michael Havens
after looking into it I found that according to https://slashzeroconf.wordpress.com/2008/02/16/chkconfig-for-ubuntu-sysv-rc-conf/ chkconfig is sysv-rc-conf in debian/ubuntu :-)~MIKE~(-: On Wed, Apr 9, 2014 at 9:50 PM, Stephen Partington wrote: > Debian and Ubuntu have a more graceful way of doi

Re: scp connection refused

2014-04-09 Thread Stephen Partington
Debian and Ubuntu have a more graceful way of doing these things. Google chkconfig I think. On Apr 9, 2014 9:24 PM, "Michael Havens" wrote: > think I found a way. > : > https://langit.wordpress.com/2014/02/01/simple-way-to-execute-a-command-on-startup-in-ubuntu/ > > (Please tell me if I found the

Re: scp connection refused

2014-04-09 Thread Michael Havens
think I found a way. : https://langit.wordpress.com/2014/02/01/simple-way-to-execute-a-command-on-startup-in-ubuntu/ (Please tell me if I found the correct means of doing this.) I would like to share with you a simple way to execute commands on startup in Ubuntu. This tip is very useful for exam

Re: scp connection refused

2014-04-09 Thread Michael Havens
well, there is the skeleton file which I'm sure you use but I'm not sure. cat /etc/init.d/skeleton #! /bin/sh ### BEGIN INIT INFO # Provides: skeleton # Required-Start:$remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1

Re: scp connection refused

2014-04-09 Thread Michael Havens
hey I figured out the command to issue: /etc/init.d/ssh start but am unsure of where to put it to always activate it. :-)~MIKE~(-: On Wed, Apr 9, 2014 at 8:42 PM, Michael Havens wrote: > so, like, I ran 'apt-get install ssh' and apt-get told me it was also > going to install: > > ncurs

Re: scp connection refused

2014-04-09 Thread Michael Havens
so, like, I ran 'apt-get install ssh' and apt-get told me it was also going to install: ncurses-term openssh-client openssh-server ssh-import-id so there is what I was looking for! openssh-server. Anyways, what file do I need to put in /etc/ssh.d so it will always restart upon a reboot? :-)~MIK

Re: scp connection refused

2014-04-09 Thread Michael Havens
so what directory runs scripts automatically? is it /etc/ssh.d ? I just put a text file with the desired script in there or is there something else I have to do? :-)~MIKE~(-: On Wed, Apr 9, 2014 at 3:09 PM, Michael Havens wrote: > did it! > apt-get install ssh > did it > > :-)~MIKE~(-: > > > O

Re: scp connection refused

2014-04-09 Thread Michael Havens
did it! apt-get install ssh did it :-)~MIKE~(-: On Wed, Apr 9, 2014 at 2:17 PM, Stephen Partington wrote: > should be "/etc/init.d/sshd start" or something similar and then depending > on dist you simply ad that start script to the system startup chkconfig or > something similar. you can also l

Re: scp connection refused

2014-04-09 Thread Stephen Partington
should be "/etc/init.d/sshd start" or something similar and then depending on dist you simply ad that start script to the system startup chkconfig or something similar. you can also list what is in your init.d and see what is there. On Wed, Apr 9, 2014 at 1:57 PM, Michael Havens wrote: > how d

Re: scp connection refused

2014-04-09 Thread Michael Havens
how do you turn openssl on? just installing it didn't do it. what happened to openssl-server? :-)~MIKE~(-: On Wed, Apr 9, 2014 at 1:51 PM, Michael Havens wrote: > You know I seem to remember being able to pull files to the host in > another incarnation of the VM. Doesn't that mean sshd isn

Re: scp connection refused

2014-04-09 Thread Michael Havens
You know I seem to remember being able to pull files to the host in another incarnation of the VM. Doesn't that mean sshd isn't installed? So the easy fix is apt-get install sshd. right? ohhh I remember now! I had to install ssh-server thank you Stephen... openssl . I thought it was op

Re: scp connection refused

2014-04-09 Thread Michael Torres
Could it be selinux? On Apr 9, 2014 1:33 PM, "Michael Havens" wrote: > I attempted to transfer a file from a virtual machine to the host with > less than stellar results: > > root@LFS:/# scp mnt/lfs/sources/binutils-2.24/binutils2.24.run > bmike1@192.168.0.4:/home/bmike1/Documents > ssh: conn

Re: scp connection refused

2014-04-09 Thread Stephen Partington
Can you ssh into the VM? romt he looks of it your not even being allowed to connect. you may need to turn on openssl. On Wed, Apr 9, 2014 at 1:33 PM, Michael Havens wrote: > I attempted to transfer a file from a virtual machine to the host with > less than stellar results: > > root@LFS:/# scp

scp connection refused

2014-04-09 Thread Michael Havens
I attempted to transfer a file from a virtual machine to the host with less than stellar results: root@LFS:/# scp mnt/lfs/sources/binutils-2.24/binutils2.24.run bmike1@192.168.0.4:/home/bmike1/Documents ssh: connect to host 192.168.0.4 port 22: Connection refused lost connection root@LFS:/