Ubuntu :: Specify Password In Script For Secure Connection?

Aug 3, 2010

I'm writing a script that tars, bzips, and encrypts a set of files to my GPG key and then (ideally) uploads the files to a backup directory on my school's web server. I want to run it daily as a cron job. Problem is, the web server only allows connections with scp and sftp.

Neither program allows specifying a password as a switch. I want to run it as a cron job, so I won't necessarily be present to type the password, and I'd like to just be able to specify the password in the script.

"Ah ha!" you're thinking. "He needs to generate a keypair and set up ssh to not require a password!" And I've found tutorials on the web that show me how to do just that. Problem there is that they all require me to install software and/or access files outside my home directory on the remote machine.

I have zero access to anything other than my own home directory on the remote machine. None. Nada. Zip. I can't install software, access files in /var or /etc, or find out anything about running processes. The local IT priesthood won't give me any information about what's running on the machine or how I can connect to it (and has made a point of telling me that they don't care for Linux users and I should stop asking questions).

I'd really like to to just be able to specify my password in the script. I understand that scripts are really just text files and that anyone who can get at my desktop computer can read them with a text editor and that this would reveal my password and blah blah blah, but I'm willing to trade that particular risk for the convenience of not having to be awake and monitoring the computer when the cron job is running.

Is there any way to specify the password in the script itself? I'd be happy using either sftp or scp (I've used them both successfully from the terminal to transfer files to this machine).

View 2 Replies


ADVERTISEMENT

Ubuntu Servers :: SSL Setup - Connection Error Unable To Make A Secure Connection To The Server

Feb 10, 2011

I am running an Ubuntu Server on a VirtualBox VM running on my windows machine. So I've created a self-signed certificate using the following tutorial: [URL]

From this tutorial I'm left with 3 files:
server.key
server.csr
server.crt

Then I found this very similar tutorial that has an extra bit on installing the certificates in apache: [URL] So I followed it's instructions which boil down to this:

[Code]...

So I'm thinking this should work now. However in Chrome I get: SSL connection error Unable to make a secure connection to the server. This may be a problem with the server, or it may be requiring a client authentication certificate that you don't have. Error 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error. IE8 gives me a typical "Internet Explorer cannot display the webpage" Note that [URL] fails while [URL] works fine, so it's definitely something in my ssl setup I'm thinking.

View 5 Replies View Related

General :: Ssh Connection Forces Password Change Then Closes Connection - WARNING: Your Password Has Expired

Feb 16, 2011

On my linux machine, I've enforced a password expiry policy every 45 days. So, today when I tried to ssh to the host, I get the typical "WARNING: Your password has expired". Fine, no big deal. But when I enter my new password and confirm, instead of giving me a login prompt, it tells me passwd all auth tokens updated successfully, then next line, "Connection to <host> closed". I can re-ssh back into that host and all is well from here, but it's a nuisance having to go through the extra step. Is this something in the /etc/ssh/sshd_config somewhere or perhaps a PAM config issue?

View 2 Replies View Related

Red Hat :: Secure Folders And Files With Password?

Sep 30, 2010

I need know to protect particular file or folder with a password can any tell how to do that in RHEL 5

View 2 Replies View Related

Programming :: C Wrapper For Secure Password Substitution

Feb 3, 2011

I'm working on a program that will allow non-privileged users the ability to substitute passwords that are read in from a 600-root:root file.
A user might call it like this:
/bin/securepasswrapper "/path/to/check_ping -u Admin -p ?webserver1?"

The file (defined now as /tmp/securefile) will be searched for the identifier "webserver1", and it's corresponding password will be returned to securepasswrapper. Now, I know you could just call /bin/echo, and get the output, but that's in scope at this point.
File format of securefile is:
<identifierassword>
ex: webserver1:asdf123

Once the password is properly substituted in, securepasswrapper should then execute it as the UID/EUID of the calling user (not root)...that part I've not got to yet.
Code:
/* program: securepasswrapper
author: R.Briggs + Google
date: 02/02/11
purpose: C wrapper that replaces placeholders in a string with secure passwords retrieved from a file
*/ .....

View 5 Replies View Related

Ubuntu :: Secure Internet Connection By Hiding Ip With Another Ip?

Jun 21, 2011

I want to secure my internet connection by hiding my ip with another ip so I can log to my server with 2 ips . and when someone is tracing the "fake" ip it wont affect me .

View 5 Replies View Related

Ubuntu Security :: Secure SSL Connection Through Proxy

Jul 6, 2011

Is my ssl connection secure if I'm going through a proxy. Is it possible to craft a malicious proxy to steal/crack authentication?

View 2 Replies View Related

Ubuntu :: Apache2 SSL Setup - Secure Connection Failed

Mar 23, 2010

I followed the tutorial found here [URL] but when I try to access [URL] I get the following:
Code:
Secure Connection Failed
An error occurred during a connection to www.mydomain.com.
SSL received a record that exceeded the maximum permissible length.
(Error code: ssl_error_rx_record_too_long)
Not sure what I might have done wrong... I have retraced all of my steps and I don't believe I missed anything.

View 2 Replies View Related

Ubuntu Security :: How Secure Is A Bluetooth Keyboard Connection

May 6, 2010

Since important information like pass-phrases is sent via a Bluetooth link, I wonder how secure this is. I think it must be quite a weak point.

View 3 Replies View Related

Ubuntu Networking :: SSL Handshake Failed - Secure Connection Truncated

Jun 16, 2010

I'm having a problem with Subversion. When I try an "svn up" it gives me this error message:
SSL handshake failed: Secure connection truncated
I'm running Ubuntu 10/4 but I also had this problem with 9/10. Does anyone know what this error message means? It appears to be an SSL problem but it's not clear to me what exactly the problem is. I do not have this problem with svn on my other office computer, nor my home computer. FYI, I'm running subversion on the Regina project.

The full error message is this:
Code:
svn up
svn: OPTIONS of '[URL]': SSL handshake failed: Secure connection truncated [URL]. Although I don't think there's anything specific to Regina about this svn problem, as I mentioned, I can "svn up" from home, or from my other office computer.

View 9 Replies View Related

Networking :: Vpn Connection / Non Secure Gateway / LAN Not Trustworthy

May 10, 2011

I've installed (Slackware 12.2) Cisco AnyConnect Secure Mobility Client for vpn connection (it is OpenSSL based app). When I'm trying to connect using this agent I get the error

Code: AnyConnect cannot confirm it is connected to your secure gateway.The local network may not be trustworthy.Please try another network.I don't know much about vpn. Any help are very welcomed.

View 1 Replies View Related

Server :: Error: Secure Connection Failed

Jan 3, 2010

My server is suddenly getting giving the following error: Quote: Secure Connection Failed An error occurred during a connection to inenergy.dvrdns.org. SSL received a record that exceeded the maximum permissible length. * The page you are trying to view can not be shown because the authenticity of the received data could not be verified. * Please contact the web site owners to inform them of this problem. Alternatively, use the command found in the help menu to report this broken site. I had been trying to configure the server to do secure logins (before Christmas) , but I don't think I had completed the configuration and I'm not sure how to reset it so that I can start again.

View 1 Replies View Related

Server :: How To Store Password In Encrypted File / Retrieve It In Secure Mode?

Jul 14, 2011

there are some configuration files where linux require the password of application user, to do something.how can i to encrypt the password in these files? Or how can i to store that password in encrypted file and retrieve it in secure mode?

View 2 Replies View Related

Ubuntu Servers :: Getting Server Machine To Connect To A VPN Providing A Secure Connection

Jun 24, 2010

I currently run Win 7 and want to upgrade my computer to a server to accomplish the following... I have a VPN Service. I want the server machine to connect to a VPN providing a secure connection. Then, I want all the machines in the house (windows based) to connect through the server onto the VPN connection. Hopefully this makes sense. Would it be better to stick to Windows Server 2008 or switch to Ubuntu?

View 5 Replies View Related

OpenSUSE Wireless :: Connect To Bt Openzone Of Bt Fon But Not Secure Connection

Jun 22, 2011

I have a compaq pressario v6000 with broadcom wireless card bcm4312. I was running Suse 11.3 and one day the wireless stopped working so after several hours googling I gave up and installed 11.4 but I have exactley the same problem I can connect to my bt openzone or btfon network but not to my own secure network I have tried everything I can think of including disabling security settings on my homehub but I can't get it to work at all I have used network manager and traditional I just can't get it to work.

View 6 Replies View Related

General :: Running Website Using Secure Connection (HTTPS)?

Feb 23, 2010

I have the following details on my system:

- CentOS
- RHEL 5
- WebWare for Python

We have an exisiting website written in Python and was developed by other entities and now being maintained by us. We want to run the website using secure connection (HTTPS), I tried reading this article and successfully executed every instructions but still failed to run the website using HTTPS.

[URL]

The way we run the website is using port 8080, e.g. [URL] I am sure I am missing something here, first, I am still looking on where does the port 8080 comes from since I've checked the httpd.config and it wasn't there.

View 14 Replies View Related

General :: Secure The Usb Port By External Device Connection?

Apr 14, 2010

i want to secure the USB port by any external device connection. so i need the code of detection of an external device when plugged in the USB port.

View 1 Replies View Related

Security :: Secure CGI File In Apache - Authentication By Entering The Predefined Username And Password

Sep 24, 2010

Im using opennms network configuration backup server called 'RANCID'.It run on top of RHEL5 system and using APache. Here's the link which i'm accessing [URL] But any one can access this URL and obtain my configuration files

I want to secure this using a logon page.allow login Only for the successful authentications by entering the predefined username and password But after get authenticate book marking the above URL still can access anyone since it didnt prompt username and password again In eachtime executing the above url it should direct to authenticate page

View 5 Replies View Related

Networking :: Connection Closed By UNKNOWN Entry In Secure Log File

Oct 14, 2010

Several of our servers that do not have direct exposure to the Internet have the following entry appearing in their respective /var/log/secure files.Are these messages harmless? If so, is there any way or reason to suppress their appearing in the log files?

View 1 Replies View Related

CentOS 5 :: Write A Simple Client That Opens A Secure Connection?

Jul 10, 2009

I am trying to write a simple client that opens a secure connection. My intent is to use the OpenSSL library.

I am following this tutorial: [URL]... The tutorial mentions that I need a trust certificate store called TrustStore.pem. However, I can't find that on my machine. Is there a way to generate it? I separately downloaded the source from the OpenSSL website. The source distribution doesn't have it either. There is a whole bunch of .pem files. Can I use any one of them?

View 2 Replies View Related

General :: Secure Box - Authentication Failure - Long Strong Password Can Stop To Prevent From Attacks?

Mar 17, 2010

we are using linux email server axigen past few years. we keep port open ssh and pop,smtp webmail etc. ssh use for remote trouble shooting. so through firewall it is globally accessable. we notice many attacks coming to our machine, also some people try to enter in our system but failure. as example see below a log come in messages file

Mar 17 09:19:50 sa1 sshd(pam_unix)[21231]: authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=210.51.13.120 user=root how we can secure more. as per my understanding only good long strong password can stop to prevent from attacks.

View 5 Replies View Related

Fedora Networking :: Route Table Change Disconnects From Secure Connection

Oct 21, 2010

I use a secure connection to reach company network from outside. There's a client application "Juniper network", which creates the secured tunnel to a company network. However, the connection never survives more than 8 seconds, when it goes disconnected with the message "Route monitor alarm". From my recent search for a solution I've found that this error is caused by a change in a route table, which violates a connection policy.

"This disconnect is typically triggered by a change in the routing table of the client machine, the change is such that the split tunnel policies defined by the administrator will be violated" - from [URL]

This is how a routing table looks before, during and after the connection attempt:

Code:
[vs@dilbert network-scripts]$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.64.64.64 * 255.255.255.255 UH 0 0 0 ppp0
xxx.xxx.xxx.0 10.64.64.64 255.255.255.255 UGH 0 0 0 ppp0

[Code].....

View 4 Replies View Related

Security :: Ways To Secure Sendmail Or Secure Alternatives To Send Mail

Dec 1, 2010

I'm an Oracle DBA and started working for my current employer about 4 months ago. This past weekend an alert re: FS space brought my attention to /var/spool/clientmqueue (full of mail re: cron jobs) and the fact that sendmail is not running on our Linux servers.I'm told that the IT security team deemed sendmail too vulnerable so we don't run it.Aside from FS filling up and missing notification of issues with crontab entries, I'm concerned that we may be missing notification of potential issues. In other Unix/Linux environments I've seen emails from the print daemon when it experienced problems with specific jobs.

Are there other Linux facilities aside from cron and lpd that use email to advise the users of possible issues? Are there ways to secure sendmail or secure alternatives to sendmail? My primary need/desire is to make sure that emails regarding issues on the server get to the appropriate users. Secondary goal would be to have the ability to use mailx to send mail out. There is No need/desire to receive mail from outside.

View 1 Replies View Related

Ubuntu Networking :: No Wireless Connection - Bad Password

Aug 17, 2011

Every once in a while I get lucky and I can connect via wireless.. but lately it hasnt been working. The Wicd lists all the available wifi connections, including my router. When I click on it and set it to WPA and type in my password it wont connect. it just says "Connection failed: Bad Password: even though I know I typed it in right...

View 1 Replies View Related

Ubuntu :: SSH - Connection Closed On Password Authentication

Jan 7, 2011

I have a weird problem with ssh, I am trying to ssh to a solaris server (sparc) running solaris 10 from my Ubuntu box and as soon as it authenticates the password it closes the connection. The box is located on a internal network in a wiring closet with no ability for me to access console but i still have a working ssh session from 2 days ago with what i'm trying to comb through settings and trying to resolve the issue. It also has 2 NIC's and I cannot connect to the either ruling out hardware problem. I checked if there is a limit of the number of active connections and the was no limit. I was able to connect mitiple session till 2 days ago (at one point i had on my machine 8 active ssh sessions to the same server).

Here is the output of ssh -vvv:
Code: $ ssh -vvv -l user1 10.100.xxxxx
OpenSSH_5.5p1 Debian-4ubuntu4, OpenSSL 0.9.8o 01 Jun 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0 .....
debug3: channel 0: close_fds r -1 w -1 e 6
Connection to 10.100.50.4 closed.
Transferred: sent 1768, received 1688 bytes, in 0.1 seconds
Bytes per second: sent 12077.9, received 11531.4
debug1: Exit status 254

View 1 Replies View Related

General :: Ssh Connection Without Password?

Apr 5, 2010

My box is centos 5.4 x86 at 192.168.0.20 and win7 with sshcop at 192.168.0.2.

After copying test.pub to 192.168.0.2 and adding it to authorized_keys I wrote ssh_config;

Quote:

host tester
hostname testebox.dtdns.net
user tester
port 8022
identityfile ~/.ssh/tester

[Code].....

View 6 Replies View Related

Fedora :: Lost Password And Connection?

Oct 13, 2010

I just got my computer up and running after several months of not working,nd have forgotten my password for the command prompt. Any help on where I could possibly find it. :/ odd question I know and I apologize. My second question is Im trying to use my android driod phone as a modem for the internet, I will be using the pdanet app so I am able to do this, yet during installing it on my phone it asked me if I was using a 32-bit windows

View 4 Replies View Related

Ubuntu Networking :: Setup Broadband Connection With User Name And Password

Jun 26, 2011

I have a 2G Broadband service through my Ethernet cable. My provider in China has a user name and password to login to their service. I don?t have a modem or anything but the wire coming in from the outside. It is setup in windows but I can?t figure out how to do it in Ubuntu 11.04.

View 1 Replies View Related

Ubuntu Networking :: Wicd WiFi Connection Fails / Bad Password Wpa2

Nov 27, 2010

I am running Ubuntu 10.04 on a PackardBell notebook and have just got an Orange Livebox 2 for broadband connection(after years of dial-up as no adsl in my area).I am trying to connect via WiFi to the Livebox to configure, but neither NetworkManager nor Wicd will connect. NM sees the Livebox but simply fails to connect after trying; Wicd says "Bad password".The WPA2 password I have entered is definitely correct, and I have connected without any problem from an AcerOne under Linpus.I have also tried to connect using Wicd and an ethernet cable, and this doesn't connect either, returning "Connection Failed: Unable to Get IP Address"

View 1 Replies View Related

Programming :: SFTP Connection With User And Password On The Header?

Mar 25, 2011

how I can do a ftp connection putting the user and passwd as default?

View 6 Replies View Related







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