Server :: SSH: Automated Login Via Public Key Not Working?

Aug 17, 2009

Run a script on ServerA which uses a ssh-connection to ServerB to execute a few commands on ServerB. As ServerB only allows login with username+password the whole stuff gets more complex. SSH provides key authentication enabling passwordless login as you probably know. So as stated in many tutorials I did the following:

Quote:

ssh-keygen -t dsa
ssh-copy-id .ssh/id_dsa.pub osr@10.17.120.207

Trying to connect with

ssh osr@10.17.120.207

should now be passwordless but I'm somehow still getting the prompt for the password.here the output from ssh -vvv osr@10.17.120.207

Quote:

OpenSSH_4.1p1, OpenSSL 0.9.7d 17 Mar 2004
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *

[code]....

interesting are probably the following lines:

Quote:

debug3: Not a RSA1 key file /users/osr/.ssh/id_dsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'

View 11 Replies


ADVERTISEMENT

Security :: Secure And Automated Backups - Add Public Key To Authorized_hosts File On Prod Server?

Mar 13, 2010

I'm trying to find a secure way to backup files on my Prod Server to Backup Server. It must be automated, so I will need to run a command with cron which will login to Prod Server from Backup Server and backup data. 1. Do you think it would be secure enough to do this by creating an passwordless RSA private key on Backup Server and adding it's public key to authorized_hosts file on Prod Server? I can't think of a way to Automate this without having to enter any passwords without passwordless RSA key. Is there another. more secure way? 2. Should I create a special user for backup, which will only have read access to all files in the directory that I am backing up? If so, How can I run a check that this new backup user indeed has read access to ALL files in the folder that I intent to back up? How can I ensure the backup process will not skip files due to some permission problem? 3. I'm thinking of using rsnapshot tool, which uses rsync.

View 10 Replies View Related

Fedora Networking :: Scripts To Automated FTP Login To More 20 Server

Apr 22, 2009

How do I make a scripts to automated login ftp to more 20 server at one time? From fedora to ftp X 20 linux server.

View 2 Replies View Related

Server :: Putty/SSH Login Failed When Using RSA Public Key: 'Server Refused Our Key'

Sep 19, 2010

ENV: openssh-server-5.4p1-1.fc13.i686 Problem: I am unable to ssh using Putty (when using ssh-auth/pki) to a fedora box . I get the message: Server refused our key. Here's what I tried so far:

- Tried generating rsa (as well as dsa) keys on the linux server and put the generated public key in the ~/.ssh/authorized_keys. Then I converted the private key using PuttyGen.

- Also, tried generating keys using PuttyGen and then converted the public key and placed it on the server

- Configured the sshd server (ssh_config) for using RSAAuthentication=yes. Tried all combinations and purmutations; however, I still get the "Server refused our key" error.

View 10 Replies View Related

General :: Cannot Login To Server - Permission Denied (Public Key)

May 1, 2011

I am working currently on my server on an issue, I configured the SSH Deamon that only people who have a valid ssh-key can login on to the server, and kicked the password option. Now I've added a user account git. I navigate to his home folder created the folder ".ssh" and created in that folder the file "authorized_keys" I copied my public key in there. Now on my local machine I added that identity (via ssh-add) and I wanted to connect to my server. but when I'm trying to login myself I can't the only message I get is "Permission denied (publickey)."

View 1 Replies View Related

OpenSUSE Network :: Lamp Server To Send Automated Emails Using Cable Providers SMTP Server?

Jun 19, 2010

Somewhere out there there has to be someone that can help me set up my lamp server to send automated emails using my cable providers SMTP server

View 2 Replies View Related

Programming :: Automatic Login By Using Ssh But Without Creating Public Key?

Apr 12, 2010

I want to connect to anothere server from my current server through SSH command.

when I am using the command in the terminal like-- ssh username@ip it is asking me to give password. This is working fine in the terminal. but I want to do it automatic through a shell script.

How can I be able to provide userid and password through shell script?

I was trying to achieve it by creating a public key and copy it to the destination .ssh file. but I dont have the permission to create any file in the destination server.

View 2 Replies View Related

Ubuntu Security :: Setting Up Public Key For Passwordless Ssh Login

Sep 8, 2010

I can't get this to work on my machines.

So far I have:

1. created a key with ssh-keygen on the server to be logged in to
2. copied the .pub key to my local machine
3. chmod 700 ~/.ssh on both machines
4. chomd 600 ~/.ssh/ic_rsa on the server, and on known_hosts on my local machine
5. added the .pub key to ~/known_hosts on my local machine

my local machine doesn't have an "authorized_keys" file which is what everything is telling me I should append my .pub key to. The only thing that was in my .ssh folder was known_hosts, so I tried that. I also tried making an authorized_hosts file to no avail, changing permissions appropriatly on all files.

Should I/Can I reset ssh in some way? Is there are reason I don't have an authorized_keys file or is my known_hosts file my authorized_keys file?

Would it be better just to uninstall/reinstall ssh?

View 2 Replies View Related

Ubuntu Security :: Can Login With Public Key But Forgot User Password?

Aug 26, 2010

I have a problem with my ubuntu account. I am running 4 virtual machines, based on jeos-8.04 and I am using a public key authentication to login to my account (via ssh). This is not the problem, I have the key and the passphrase. But when I am logged in, I can't sudo, because I forgot the password for the accout.

View 6 Replies View Related

Fedora :: Ssh Public Key Login Doesn't Work As Root User

Dec 22, 2010

I've tried to ssh in as the root user w/o a password (RSA keys) but I've had no luck as the root user. I've tried the exact same commands with Debian 5 and Centos 5.5, without a problem. Fedora 13 and 14 won't work! I can only log in w/o a password as a normal user, never as the root user! It always asks for the password if I try as root. I've even tried copying Debian's and Centos's sshd_config file and restarting sshd, but it still won't work.

Code:

mkdir ~/.ssh ~username/.ssh
chmod 0700 ~/.ssh ~username/.ssh
echo "ssh-rsa AAAAB............Jw8V03loeZ username@thehostname" > ~/.ssh/authorized_keys

[code]....

View 6 Replies View Related

OpenSUSE Network :: Get The NFS Server To Respond To An Automated Search?

Jan 15, 2011

opensuse v11.3 I enabled a NFS server on a host, set up a couple of exports, opened the ports in the firewall. When I open the NFS Client on another host and select "Choose", there is popup that states "Scanning for hosts on this LAN...". Then it returns an error "No NFS server found on your network. ..." That's funny because I had previously mounted the two exported directories already by entering the server name manually. How do I get the NFS server to respond to an automated search?

View 2 Replies View Related

General :: Ubuntu Server 10.4.1 Automated Full Backup?

Sep 27, 2010

This is my first post and I am a linux newbie.. took on the challenge of setting up an ubuntu server with proxy and firewall with vpn access as well.. sounds good? While messing with things, I installed ebox server, know called Zentyal and perform backups, however, when performing a full restore, following instructions and all it does not restore correctly. I ran many attempts with verious configurations and still allways got some errors, such as eboc-ebackup failing to start, etc. most noteably wa sthe ldap error, which i figured out how to fix by restarting once logged into and then rebooting.

I say the Clonezilla options for a full backup, and it sounds great, but does require me to perform a full abckup, while bring the server down to perform. What I wanted to know, was what do you recommend for performing a full backup (possibly to NTFS partition or USB key with FAT32) with automation or even if i had to perform the trigger, just without needing to bring the server down, so when i go into production i dont have any issues backing up anytime?

View 2 Replies View Related

General :: Automated Save/redirect Files From Client Into PXE Server?

May 26, 2011

I just finished set up a PXE server, and was wondering is it possible to automated save/redirect files from the client into server? Basically, test will be running on client, and wanted to save the result(text file) into server after done testing.

View 1 Replies View Related

Server :: Automated Kickstart Installation With Variable NFS / HTTP Repository?

Jul 21, 2011

I'm confronted with a problem and haven't been able to find a solution using Google and the likes. I have created a netinstall image based on CentOS 5.6 with kickstart which works great while pointing to the HTTP / NFS repository in isolinux.cfg like this:Code:label publisherkernel vmlinuz append initrd=initrd.imgks=http://192.168.0.198/kickstart/ks.cfg cdncontentpublisherThe problem however is that the location of the kickstart file and repository/ies might vary and I don't want to create a separate ISO for each and every location.

View 5 Replies View Related

Debian :: Ssh Public Keys Not Working?

Jun 21, 2009

I have two computers running Debian Squeeze. I'm trying to set up the public keys for them so that I don't need to use passwords to log in. As far as I know, I did the same thing for both, however only one is working.Here is the connection output for eachBroken:

Code:
OpenSSH_5.1p1 Debian-5+b1, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config

[code]...

View 2 Replies View Related

Fedora :: Login To The Samba Server Using Smbclient But It's Not Working?

Jan 14, 2010

My OS is F11 and i've two systems; i'm running Samba server on one system and i've login on the client system and trying to login to the Samba server using smbclient but it's not working.Can someone give me the command to login to the Samba server using smbclient!

View 1 Replies View Related

Ubuntu :: Server Edition Login Screen Not Working

Jan 20, 2011

i just installed ubuntu server edition 10.10, install said it was successful, but instead of loading a normal login screen it takes me to a screen that says exactly this: Quote: Ubuntu 10.10 computer name ttyl computer name login: Im wondering if this is normal or did the install go wrong somewhere, and not report it and if there is a way to fix it.

View 2 Replies View Related

Ubuntu Networking :: OpenSSH Public Key Authentication Not Working?

May 22, 2010

I'm trying to get OpenSSH public key authentication to work. My server runs ubuntu. My client is a windows machine, and I'm using cygwin. I tried using the instructions here: [URL]... If I test it out using this line: ssh -v -v -v -o PreferredAuthentications=publickey server.example.org

I get this:
debug3: no such identity: /home/Julie/.ssh/identity
debug1: Offering public key: /home/Julie/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug3: Wrote 368 bytes for a total of 1477

[Code]...

View 2 Replies View Related

Ubuntu Servers :: Samba Public Share Not Working?

Jun 25, 2010

Code:
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#

[code]...

View 5 Replies View Related

Ubuntu Servers :: Gitosis Installation Of Public Key Not Working

Dec 5, 2010

I resolved the issue, see post #4.I've installed gitosis on a home server running Kubuntu Maverick, but am unable to get the ssh public key to work. When I try to clone, I get a password prompt.I entered a password for the key file. Then I copied the resulting public key to the server's tmp directory:

View 3 Replies View Related

Ubuntu :: Ad Hoc Not Working - (network Isn't Created For Public Access)?

Aug 3, 2011

Today I was creating an Ad Hoc network for sharing internet connection and I realized it is not working. I have done it before on Ubuntu 10.10, now on 11.04 it just doesn't work. I create a new connection (Create New Wireless Network) and it is never visible to the other computers (I checked the IPv4 settings, it was Shared to Other Computers). I really do not know what is going on, my wireless card is working perfectly fine (I can connect to other network and on additional driver it is there with a green circle).

View 9 Replies View Related

Ubuntu :: Use Openssl Public And Private Keys So Only A Host With The Public Key Could Access / Decrypt The Filesharing

Aug 2, 2011

I'm trying to write a p2p file sharing program using python's built-in libraries. Everything is going well. The only thing is that i'd like to be able to use openssl public and private keys so only a host with the public key could access/decrypt the filesharing. I've gotten these libraries (httplib, basehttpserver, ssl, os) to work using just a pem file containing both the public and private keys but no success with them seperately. Can someone point me in the right direction or offer an alternative? PS, the goal of the project is to create an anonymous, decentralized, secure file sharing program. I want to be able to upload this to sourceforge so everyone can use it, if that's any incentive

View 2 Replies View Related

General :: Mv: Cannot Stat `/public/public/clamscans/*.txt': No Such File Or Directory

Sep 24, 2010

I run the following file with the >log.log redirector and it does not capture errors.

#!/bin/bash
echo ************************BEGIN LOG******************************
date +"%m/%d/%Y %H:%M:%S $HOSTNAME"
cp -f /scripts/original/clamscans.log /scripts

[code]....

The following errors show up when I run from the file from the term window, but are not written to log.log:

tar: /public/public/clamscans/*.txt: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
mv: cannot stat `/public/public/clamscans/*.txt': No such file or directory

I know with windows you can add the 2>&1 to capture error data. Is there such a thing for Linux?

View 2 Replies View Related

Fedora Servers :: Turn Public Server Into A Sendmail Server?

Feb 22, 2009

I'm new to send mail. I have a server with a public address and domain name. But I only want to implement a small sendmail network on our 20-user LAN. Can I turn my public server into a sendmail server? Are there any simple step-by-step instructions for this?

View 1 Replies View Related

Ubuntu Networking :: Public Files/network Sharing Not Working?

Mar 21, 2011

So I want to put some of my folders on my network. I open up nautilus and go to my home folder and right click -> properties-> share and then selected share this folder, made it so that others could modify stuff on it and have guest access (which is what I want), and changed the share name to "home". Then I clicked create share. I then went to Places->Network->******'s public files on [the name of my computer]. But then some stupid error message popped up saying:

"DBus error org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)"

View 7 Replies View Related

Debian Configuration :: Forward Traffic From Public IP To Another Public IP?

Mar 3, 2010

How can I forward all traffic from a public IP to another public IP. Let's say I have a first debian box named box1 with eth0 = 1.1.1.1 and eth0:1 = 1.1.1.2 and I want to forward all traffic from 1.1.1.2 to "box2" located somewhere else over the internet and having for eth0 2.2.2.2 Both 1.1.1.0/24 and 3.3.3.0/24 are public IP ranges.

View 1 Replies View Related

Server :: Create SSH Server In Home With Dynamic Public Ip?

Jun 15, 2011

i need to create a SSH server in my home and i should able to log in my SSH server over the internet from out site. what are the setup i have to do?

View 14 Replies View Related

Server :: Distro For Public Library Server?

Sep 24, 2010

I have the opportunity to set up our local public library with a linux server. The primary need is for the server to land wifi users to a hotspot splash screen where they will accept terms of use and indicate what town they are from by checking a box or selecting from a dropdown menu. Users of terminals in the library would also have to indicate what town they are from. Things such as content filtering may come later. What distro would be recommended for this? Ease of use and configuration is important. They basically want to track use of the internet.

View 5 Replies View Related

Server :: Home Web Server Accessed By Public IP?

Jun 26, 2011

I have configured web server in my home. it is working in LAN. but every one should be accessed from out site from LAN. how is possible ? i would like to access as http://123.123.123.123 Then i dont need the host name? My public IP http://123.123.123.123. My LAN IP [URL]... i did the port forwarding in my router. when i access the web from outside automatically logging into my ADSL router.

View 13 Replies View Related

Networking :: Connect To Server Without Public IP?

Jul 18, 2011

I want to use my personal computer remotely. The problem is my computer is connected to a local network that I can't modify. I can connect from my computer to another one that has public IP via ssh. Is it possible to login to the "proxy" computer from somewhere and somehow use the connection established before to connect to my PC?

View 3 Replies View Related







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