Ubuntu :: Setting Up A Cron Job Creates A Tunnel To Remote Machine To Work Correctly On 9.10?

Jan 12, 2010

I am having some trouble setting up a cron job that creates a tunnel to my remote machine to work correctly on Ubuntu 9.10. The setup looks like the following:

(1) myscript.sh (executable)
Code:
#!/bin/bash
ssh -2 -x -i /home/user/.ssh/id_rsa.prv -L 3128:myremotemachine:3128 myaccount@myremotemachine
(2) crontab -e, added the following lines:

[Code]...

View 5 Replies


ADVERTISEMENT

Ubuntu Servers :: Setting SAMBA Server Correctly - Can Only Access Files From The Win 7 Machine

May 31, 2010

Im having trouble setting my SAMBA server correctly. I have two Win machines, one with WIN7 and one with XP. I have one Ubuntu machine and Ubuntu Server 10.04. My problem is that I can only acess files from the Win 7 Machine. When I try to map out the shared dirs on my serverI get asked for user and password, when I enter my creditensials it dosent help.. What to do? I used the sample smb.conf file and open for no restrictions..

[Code]....

View 9 Replies View Related

Ubuntu :: Setting Up Remote Administration On A Distant Machine?

Oct 30, 2010

I'm try to assess the viability of of setting up remote administration on a distant machine. Just for background, the computer I wish to administer is located on a boat in Southern Ireland while I'm in SE England. Sadly, the the boat operator is a far better fisherman than computer user and every now and then some rogue sensor numbers get captured by the boat's computer and these eventually need operator intervention. Anyone who has tried to talk a non PC literate user through correction routines over a dodgy mobile telephone while the said user is trying to operate mouse/keyboard in an Atlantic swell will appreciate the problem.

However, there is a fairly good mobile phone broadband signal available in the area so I was wondering if there was anyway I could set up a point to point connection with the boat over this medium. That would allow me to administer the machine remotely.

View 2 Replies View Related

General :: Cron - Mysqldump Job Creates An Empty Sql File

Apr 14, 2010

My cron job is executing the below mysqldump command but it produces an empty sql file. However, when I run from the command line, it works as expected.

Code:
15 6 * * * root mysqldump -uroot -pXXXXXXX mydbname | gzip > /home/dbbackup/db_`/bin/date +\%Y\%m\%d\%H\%M`.sql.gz

I'm on CentOS 5.4 and use "env EDITOR=nano crontab -e" edit my cron (then paste the above command.

View 5 Replies View Related

Ubuntu Networking :: Setup A Ssh Tunnel From Machine A To Machine B?

May 29, 2010

I can set-up an ssh tunnel from machine A to Machine B:-

fred@my-linux:~$ ssh -P myport fred@myserver.homelinux.com

I can successfully logon to machine A to Machine B.

what address and port will my tunnel 'appear' on machine B? I want to send a stream back from B to A up the encrypted tunnel, not over the open network.

View 5 Replies View Related

Ubuntu :: Remote Desktop Through Ssh Tunnel

Sep 1, 2011

When I view a work computer Remote Desktop settings it states that connections are only available to other computers on the LAN.This gives me a terminal window on the work pc2.Is there any way I can start a Remote Desktop session on pc2 through the ssh port forwarded session?

View 4 Replies View Related

Ubuntu Servers :: Tunnel To Remote NFS Server?

Jan 11, 2011

Does anyone know the best and simplest way to do this? I'd like the share to be mounted over the tunnel on boot with as little scripting as possible and be as secure as possible without exposing more than one port to the outside. I will be trying this method: [URL]... once the tunnel is established and 'always on' NFS would take care of the file system mount obviously. Lots of the information I have been reading is not up to date it seems. Does anyone have any experience with this?

View 1 Replies View Related

Ubuntu Servers :: Make Sure Cron Job Copies Files Correctly

Jul 1, 2010

I made a Bash script that is fired by a Cron job every morning. It dumps an SVN backup on some Samba shared drive. I would like to know how I can make sure the job worked correctly without having to verify the shared drive every morning. Right now, I take the job's output, save it to a log file and send this file by email. But the ouput isn't so great.

[Code]....

View 2 Replies View Related

Server :: MySQL Backup Cron Job Not Executing Correctly?

Mar 2, 2011

I own a CentOS 5 VPS. I typed crontab -e, and then I added the following line to automatically have my server backup mysql

0 * * * * mysqldump -u root -p password --all-databases | gzip > /home/dbbackup/database_`date '+%m-%d-%Y_%H'`.sql.gz

When I go in and look, it doesn't place any files in /home/dbbackup. When I run

mysqldump -u root -p password --all-databases | gzip > /home/dbbackup/database_`date '+%m-%d-%Y_%H'`.sql.gz

View 3 Replies View Related

Ubuntu Servers :: Setting Up A Bridge For OpenVPN / Tunnel All The Traffic Through The VPS?

Feb 3, 2011

I have an Ubuntu VPS running 10.10 x86_64

This is what is in my /etc/network/interfaces right now.

Code:
auto eth0
iface eth0 inet static
address 67.202.x.x
gateway 67.202.x.1
netmask 255.255.255.0
auto lo
iface lo inet loopback
My server.conf
code....

I can get the VPN server running and everything connects fine from the client. I just don't know how to tunnel all the traffic through the VPS because it involves making the bridge which I'm having trouble with. What exactly am I supposed to put in /etc/network/interfaces?

View 1 Replies View Related

Ubuntu Networking :: What Is Syntax For SSH Tunnel Host In Remote Desktop Viewer?

Aug 1, 2011

I have succeeded in using Remote Desktop Viewer to make a VNC connection to a remote WAN computer and it was quick enough to manipulate the remote computer in real time.I found the host name by getting the remote target computer to put the following url into a browser - http://www.showmyip.com/ - It returned the address for the router which I put into the Host: text entry box in the Remote Desktop Viewer window. E.g. for my computer at the time of submitting my enquiry the address was 'host81-129-54-226.range81-129.btcentralplus.com'.The remote router that I connected to needed to have the port 5900 forwarded to the remote target computer.I now want to progress to running VNC through a SSH tunnel for additional security. In the Remote Desktop Viewer there is a configuration line

'use host' <text box to enter host name> 'as a SSH tunnel'.What is the correct syntax to enter in the text box? It would help my understanding if you used the example address above as a basis for a response.Many unexpected connection attempts reported on my router, if that was you, thank you for the novel way in responding to the question and providing the syntax.The 'bible' on syntax appears to be found here:- http://unixhelp.ed.ac.uk/CGI/man-cgi?ssh+1

View 2 Replies View Related

Security :: SSH Tunnel Not Accessible From Different Machine On Same Network

Dec 16, 2010

I have an SSH tunnel setup between a local server and a remote postfix relay VPS. This is so we can route all our outgoing mail through this SSH tunnel to a private relay VPS, this seems to give us much more consistent mail delivery than using our ISP's relay. So the SSH tunnel is set to route port 1025 on machine A to port 25 on the VPS This part of it is working perfectly and has been for months. However today I wanted to set our e-mail newsletter software (on the same network as the SSH tunnel start-point) to send through the SSH tunnel. So I punched in the IP/port... 192.168.1.5:1025 but it doesn't work. Is there something I need to do to allow connections from other machines on the LAN to access the start-point of the SSH tunnel? Or are SSH tunnels restricted to localhost connections only?

View 6 Replies View Related

General :: Transfer Files On A Machine With Ftp / Sftp And Scp Disabled Onto A Remote Machine?

Nov 30, 2010

How do you transfer files on a Linux machine with ftp,sftp and scp disabled onto a remote machine

View 2 Replies View Related

Software :: Put Ssh Into Remote Machine - Error Write Failed: Broken Pipe (After Logged Into That Machine)

Jul 18, 2011

Whenever I put ssh into remote machine am getting the following messages. Write Failed: Broken Pipe (After logged into that machine ) Read Socket Failed: Connection reset by peer (While trying to log in ) Also known_hosts file is changed frequently.

View 1 Replies View Related

Software :: Redirecting Remote Machine Audio To Local Machine?

Dec 26, 2009

Is there any way to redirect a remote Linux machine mplayer output audio to local one?

View 2 Replies View Related

Ubuntu :: Setting Up Cron For The First Time Not Working?

Aug 17, 2010

I've read a lot on how to setup a task in crontab. I think I understand how to edit the file, but when I try to save the changes, it says "no crontab for xxx." Then it says that it cannot create a new crontab. I have ubuntu desktop 9 running as a webserver. I've read the details in these posts and it isn't helping.

[URL]

View 3 Replies View Related

Ubuntu One :: Does Not Add My Computer Correctly (Local Machine)

Jun 5, 2011

The devices tab under ubuntu one preferences lists only <LOCAL MACHINE> the staus at the top says disconnected, the connect button is grayed out and the reset button at the bottom right does nothing. Files don't sync etc but I think this is as a result of the situation described above. I have tried on the advice of an older thread to delete the token for Ubuntu one from 'passwords and encryption keys' and then revisit Ubuntu one preferences in order to sign in again and grant my computer access but this made no difference.

View 9 Replies View Related

Ubuntu :: Setting Up A Cron Job On DD-WRT Router To Execute A WOL Command

Oct 9, 2010

I am setting up a cron job on my DD-WRT router to execute a WOL command, and would like to know if what I have is correct.

Format:

Execute @ 12:00 on Wed, Thur, Fri, Sat every month/Yr

0 12 * * 2345 root /usr/sbin/wol -i 192.168.1.255 00:00:00:00:00:00

View 3 Replies View Related

Ubuntu :: Installs Correctly On A New 10.04 Install But Now Machine Cannot Boot?

Apr 22, 2010

Just received Intramfs update, within the hour (4/22/10 11:47 central) , installs correctly on a new 10.04 install but now machine cannot bootIt is somehow resetting the video it appears as the boot screen comes up in different (larger) type. then blanks and all activity stops,, I have been having similar problems if I apply all updates after an initial install of 10.04 but if I hold the opne gl modules the system will work but a backup taken with Remastersys made after the open GL installs will not work while the one made prior to the open GL install will restore the system so I'm guessing some sort of erroneous HW reset sequence

View 1 Replies View Related

Ubuntu :: Cannot Boot Correctly On Machine, Stuck In MemTest86?

May 1, 2010

I upgraded my 9.10 Ubuntu install last night using the Update Manager, everything downloaded fine, and appeared to install correctly. When it finished I got the message advising that my machine needed to reboot for changes to take effect. I checked my mail quickly before rebooting, and then let it do its thing. It shut down fine, then booted up and went into MemTest86. No real worries, so I wandered off expecting it to take 10-20 minutes. After 4 hours, though, I was starting to worry. A message at the bottom of the screen advised something along the lines that the test had been successful, and I could press Escape to exit.

I did, and my machine rebooted, and went back into MemTest86. I just figured I was being too impatient and left the test running all night. My machine has now been running MemTest86 for 16 hours, and while the timer is still running and the tests refreshing, my keyboard is not responding.

View 5 Replies View Related

Ubuntu Security :: Https Doesn't Work With Ssh Tunnel?

May 12, 2010

I have an ssh tunnel with my ubuntu (vps) server. On my local computer I have proxifier, to redirect everything with socks5.

Everything works fine, I can browse websites and that. Email also works.

But when I want to visit a website that uses https it doesn't work. I do not get to see the website, or receive an internal server error.

View 7 Replies View Related

Slackware :: Airmon-ng Not Setting Channel Correctly?

Jan 5, 2011

I recently installed slackware-current (not the most recent one) and since then I have not been able to get airmon-ng to set the channel of my network card correctly. I don't think it's a driver issue because the kernel from my previous install was the same as the current kernel (2.6.35.7) and it worked fine on my Atheros AR9285 Wireless card. Now every time I try to deauthenticate, it says the card is in channel -1 and won't work. One of the differences now is that I ran netconfig (I never ran this before). Sometimes when I run it, it complains about dhcpcd service.

View 10 Replies View Related

Ubuntu :: Error While Setting Emblems With Gvfs-set-attribute And Cron

Aug 26, 2010

I already posted a link in the ubuntuusers.de Forum (german) [URL].. But I haven't found a solution yet. The problem is, that I wanna set an Emblem in Nautilus via a Script that is called by cron. The problem happens in that line

Code:
/usr/bin/gvfs-set-attribute -t stringv /path/to/file metadata::emblems minus14
thats the error: Error setting attribute: Setting attribute metadata::emblems not supported
I already tried to call the script via /etc/crontab and /var/spool/cron/crontabs/meles, i tired it with
Code:
/path/to/script

[Code]...

View 2 Replies View Related

Ubuntu :: Cannot Get SSH To Work Between The XP Machine And The Main Machine

Jan 22, 2011

I have a really weird one. This may be a putty issue, or it may be a config issue in Ubuntu. I've no idea who to blame. I have four machines involved in my little issue that has me scratching my head on where to even BEGIN to diagnose what is going on. The computer I'm attempting to connect to (For identification purposes, I'll call it the main machine) is running a relatively new install of KUbuntu 10.04, stock install of openssh daemon. ufw is disabled, firewalls are off, etc, and I can prove that later.

The machine acting odd is a Win XP 32 bit running Putty. Haven't had a problem until this reload of the previously mentioned machine. A Work machine that is running RedHad of some flavour. A Virtual Machine running a headless setup of Ubunto 8.04. Now that the introductions are over, here is a quick map of the machines that can successfully connect with. My major problem is that I cannot get SSH (And ONLY SSH) to work between the XP machine and the main machine.

Work -> Main = Works
Work -> VM = Works
XP -> VM = Works
XP -> Main = Fails
XP -> VM -> Main = Works
Main -> Main = Works (IE: "ssh localhost")
VM -> Main = Works

When I try to get the XP machine to connect to the Main machine, I get an error with Putty saying:

"Server sent disconnect message
type 2(protocol error):
baad service request ssh-connection"

I've changed Putty to try using SSH Protocol 1 only, but it says the protocol isn't installed on the Main machine, which is true. I've tried setting just 1, and it gives me the error, and I've tried setting it to "2 only" and it again comes up with the error. I went into /var/log as root on the Main machine, and did a "tail -n0 -f *" and then tried to connect, but nothing relevant shows up.

As for the proof that the firewall is disabled, three of the machines are working with Synergy, I am able to swap between all three of the machines without a problem, I can get to WebAdmin from the XP machine to the Main machine, and I can open a Samba share from the XP machine to the Main machine without a problem. This sounds like a protocol issue, but I can't see anything in WebAdmin that'll put me in the right direction.

View 4 Replies View Related

Ubuntu :: Can't Get Cron To Work

Jan 6, 2010

I've been trying to accomplish this on my own, but I can't seem to figure it out...

All I'm trying to do (for learning purposes) is to get a message to print out to a log file every 5 minutes.

This is on Ubuntu Server 6.06.

Logged in as root ( I know, I know, should have sudo'd, oh well... )

Created a new file with this in it:

Code:

Added this line:

Code:
( I wasn't sure the proper command to try every 5 minutes, but this is my latest iteration. I also started with just */5, and that didn't seem to work either. )

Saved and exited crontab.

Console reports:

Quote:

Using command: ps -ef | grep cron

Quote:

So I waited 10 minutes to be safe.... and saw no log file appear.

I checked this page here: [url]

I wasn't sure what it meant by the PATH= variable they wanted me to set, my /etc/crontab file states:

Code:

But I didn't know if it meant there, or in my crontab -e location, so after the first failed attempt, I added the line from that webpage as well to crontab -e:

Code:

Waited another 10 minutes to be safe, still nothing.

View 4 Replies View Related

Ubuntu :: Ssh And Run Command On Remote Machine?

Jan 8, 2010

I have made a shortcut on desktop and want that one to ssh from machineA to machineB and run a command.I have fixed the .pub file so I can ssh without password.This is what I want to doPHP Code:ssh -X user@machineB && start-the-program ..but it seems to not run the command after "&&".How can I do to make it automaticly run a command after it has connected over ssh?

View 5 Replies View Related

Ubuntu :: Control TTY On Remote Machine Via SSH

Jun 19, 2011

I'm wondering if it's possible to control a TTY on a remote machine via SSH. I'm aware of ssh's -t option, but it doesn't seem to do what I want. Basically, I'm thinking in terms of VNC-like operation, where the remote user and local user see the same thing, only instead of a GUI, they both see TTY1 (or 2, or etc). Is that doable, or no?

View 3 Replies View Related

Ubuntu :: SSH Display On Remote Machine?

Jul 10, 2011

I have SSH -X working fine, displaying stuff that's running on the remote machine on my local machine. But how do I display on the remote machine? I did this many years ago on unix and seem to recall that this was either default or a simple case of setting DISPLAY....

View 3 Replies View Related

Ubuntu / Apple :: Setting Up Remote Access For Mac?

Aug 6, 2010

My dell notebook runs Ubuntu (Karmic Koala). I want to be able to remote access my mom's Mac notebook (I believe it's an Airbook?), so that I can assist her with problems on her computer.What would I need to do on my computer (and how?)What would I need to do on her computer (and how?) to set this up?

View 1 Replies View Related

Ubuntu Installation :: Setting Up KDE Remote Desktop?

Aug 9, 2011

I've done apt-get install kde-full on a server, and would like to know how to set up remote desktop control for it. As I've never done something like this before through a console, I'm rather stumped and can't seem to find any information on this matter.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved