Server :: Running Command On Another Box - Passwordless?

Jul 29, 2011

I have two load balancing boxes... One primary (box1) and one backup/failover (box2). I want to make sure the heartbeat is running on both boxes via a script. While I'm on box1, I want to run as any user: ssh box2 service pulse status and not have box2 ask for a password.

View 1 Replies


Ubuntu :: SSH Passwordless Ssh For Hadoop On Server?

Feb 24, 2010

I have for a while been trying to setup ssh so hadoop can ssh without a password to all it's nodes. (Currenly 2 nodes)But i can not get the ssh to login without either asking for a password or just getting access denied (public key)I have been following two guidesFirst:Setting up SingleNode ClusterThen after:Setting up Multinode ClusterI have also done various ssh tutorials on setting up ssh.I got to the point where i do the command bin/start-dfs.shThen it begins asking for passwords. Which it should'nt.The problem is that ssh is not setup correcly.And whatever i try i get problems with logging in.the computers are called. (Namenode and JobTracker)


View 2 Replies View Related

Server :: Passwordless Ssh Stopped Working?

Aug 18, 2011

There are a few threads about this but none seem to me.I have 3 machines setup with a nfs home directory on machine 1.I have created keys using ssh-keygen -t rsa (and left everything blank), then as user on machine 1 run

cat >> authorized_keys2
chmod 644 ~/.ssh/*

this used to work until I upgraded to ubuntu 11.04 (from 9.04), and now it requires a password to ssh. I have tried several times deleting ~/.ssh/* and recreating, to no luck Below is the results when I try to ssh into -2 from -1:


(dumb question, but shouldn't the offered RSA public key be rather than id_rsa?)

View 5 Replies View Related

Server :: Running A Command On A Remote Server Asks For Password (debian)

Jul 8, 2011

I am not seeing what i am doing wrong here, but here goes:

From my server I need to run a command for backup on 25 remote servers (through a script). Now I have pushed the public keys for remote ssh connectivity on all of them and it works ( I can push files using rsync without the need to enter passwords on the remote servers), howver, I need to run the following command:

ssh odsadmin@ 'cp -a /var/www/life /var/www/life-v4'

when I run this command, I keep getting asked to enter the password, I even tried putting sudo in front of the cp, but still get the request to enter the password.

View 9 Replies View Related

CentOS 5 :: Passwordless Ssh Login From Windows - Uploaded The Generated File To Server

Aug 22, 2009

I have an rsync server and am now setting up cwrsync on my windows machine. I want to be able to run cwrsync over ssh with public private keys. I followed a tutorial over here to set this up. It, however, still prompts me for server password and works only if I provide the password. For some reason the public/private key process is not working.

- I generated a key using the command: ssh-keygen -t rsa -N '' (I verified the key gets generated on my Windows machine)

- I uploaded the generated file to server /root/.ssh/authorized_keys

I am also prompted for a password if from command prompt I run this command to log into server: ssh -i c:docume~1user.sshid_rsa root@<server_ip_address> On server I have changed the configuration file (/etc/ssh/ssh_config) to say:

RSAAuthentication yes
PubkeyAuthentication yes

I then restarted the sshd service, however, to no avail.

View 4 Replies View Related

Server :: Error While Running Sar Command?

Jul 2, 2010

i am getting this error while running in rhel 5.3 -bash: sar: command not found

View 5 Replies View Related

General :: Command Prompt Ftp To Ftp Server Running On Windows?

Dec 27, 2010

I am using on Windows Vista, Filezilla server. I have it set up to be accessed via outside IPs and when I use a client on the IP I have it connects normally using Filezilla client. On the same machine I have Ubuntu running in a virtual box and when using filezilla client in there it works fine. Now I want to try the command prompt. So I do the ftp enter the name and password and i get the ftp command prompt, but the commands are not working properly. when trying "ls" or "cd" these commands do not work. "cd" tells me that the current directory is "/" root, but this does not make sense in the windows operating system. Now the filezilla client is taking the user in the application window directly to the root folder of the permitted filespace granted to that user. How can the same be done from the command prompt, if there is a way? It is as if the command prompt takes me to the root which does not exist or even have correct permissions to move in. Is there any way to be taken to the correct directory directly, or move there especially when the slashes are the wrong way around etc?

View 1 Replies View Related

OpenSUSE Install :: Accidentally Changed /usr/bin/php File On My Server By Running A Cp Command

Sep 14, 2010

I've accidentally changed /usr/bin/php file on my server by running a cp command. I know this is bad, i just don't know how bad. Everything is working fine (websites using php), so i just wanted to know what this action could cause and also how can i restore original content.

View 4 Replies View Related

CentOS 5 Server :: Show All Services Running / Installed In The Command Line?

May 6, 2011

Howto show all services running/installed in the command line under Centos 5.6 Server?

View 6 Replies View Related

Security :: Qmail Hacked In Server \ Cannot Find Any Suspicious Script Running Using Ps Xaf Command?

Jan 3, 2011

My server is probaly hacked and sending spam emails. I see them randomly in maillog (/usr/local/psa/var/log/maillog, server has a plesk panel), sometimes a few in a long time, sometimes a lot of them.Here is a sample of it:

Jan 4 00:47:08 acv360 qmail-remote-handlers[17662]: Handlers Filter before-remote for qmail started ...
Jan 4 00:47:08 acv360 qmail-remote-handlers[17662]:


View 7 Replies View Related

Red Hat / Fedora :: Passwordless Login Using SSH?

Sep 2, 2010

How can I configure ssh to do the passwordless logins between the users in a Linux server?I am using RHEL4.6 version. I have created some users in this server and I would like to login from one user to the other users in the same server without a password prompt by using SSH. I was using rsh for this purpose before, but since it is against our security policy , I have to switch to SSH.I have done the ssh configuration by creating the keys and copying the public keys to the file .ssh/authorized_keys of the other users in the same server.But unfortunately still I am not able to login to other users in the same system WITHOUT a Password.I did the following settings.From user1:

mkdir ~/.ssh
chmod 755 ~/.ssh
/usr/bin/ssh-keygen -t rsa


View 1 Replies View Related

General :: Passwordless Ssh Without Ssh Keys?

Apr 27, 2011

I'm in my terminal and do git pull, git push alot in a work day. On the server I'm pulling and pushing I can't do password less ssh the usual way by generating rsa keys.Is it still possible perhaps for me to enter my password once for a session and do all the git pulls/pushes I want?

View 1 Replies View Related

General :: Passwordless SSH To The Same Host?

Jun 12, 2011

I am trying to run OpenNebula on a set of 2 machines. One of the machines(called host1) must be able to access the others(including itself) with passwordless ssh.Both machines have the same user and use mounted folder from host1 for home directory(exported with NFS). So single key generation should be enough for this configuration - all the machines have access to the same .ssh folder.What I am getting at the end is passwordless ssh from host1 to host2 which is great, but no success from host1 to host1. Host2 to host2 is also OK, host2 to host1 wants password like host1 to host1.Both machines have the same sshd_config and ssh_config files.File permissions required by ssh should be correct since it works for host1 to host2.The only difference(I see) between the machines is that host1 runs nfs service, so host2 has access to the exported folders.

The ssh-keygen is executed on host1authorized_keys has the same public key two times(to authorize access for host1 on host1 and host2).The distro is Scientific Linux 6.0 aand I also use rsa.Something else - no pass ssh with another user from host1 to host1 works, so I suppose the problem comes from this mounted folder.

View 4 Replies View Related

CentOS 5 :: Cannot Get Passwordless Ssh Working?

Aug 13, 2010

I can ssh with password ok but after doing the whole key generation procedure at [URL].. section 7, it still prompts for a password. Here is the output:

[root@apvdbs03 log]# ssh -v root@aapxen01
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to aapxen01 [] port 22.
debug1: Connection established.


View 5 Replies View Related

Fedora :: Passwordless-ssh Works - But Not After Su To User?

May 11, 2011

I have key-based authentication working for one user on a cluster--

user@thisnode > ssh user@othernode
last login blah blah blah..
user@othernode >
but if I switch to that user and try it, I get an error--


View 2 Replies View Related

General :: Achieve Passwordless CVS Updates?

Aug 19, 2011

I'm working on some code from my computer at home and would like to do CVS updates to a remote server. When I'm at work I don't need to type in a password, but at home each time I need to type in my password each time I do a CVS update. I've followed the instructions here on how to set up a passwordless public/private ssh key pair: [URL].. However, after that I still need to type in my ssh password each time I do CVS update (or anything CVS related) from my local computer.

View 1 Replies View Related

Ubuntu Servers :: Can't Get Passwordless Ssh To Work

Feb 3, 2010

I followed the steps here: [URL]

It works fine, except every time I try to do something that requires authentication of the key, I have to type in the password in a prompt that looks like this:

$ git pull
Enter passphrase for key '/home/<user>/.ssh/id_rsa':
remote: Counting objects: 16, done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 9 (delta 7), reused 0 (delta 0)

This is very annoying. How can I have it so I don't have to enter my password each time?

On my local machine I followed the same instructions and don't have to enter the password every time...

View 4 Replies View Related

Ubuntu :: Setup Passwordless Ssh/scp For Some Servers On A LAN?

Feb 9, 2011

I am running Ubuntu 10.04 (OpenSSH_5.3p1 Debian-3ubuntu3, OpenSSL 0.9.8k 25 Mar 2009) I am trying to setup passwordless ssh/scp for some servers on a LAN I am running the following commands:

ssh-copy-id user@<ipaddress>

I added the last step as the following error prevented logins:

agent admitted to failure to sign using the key After running ssh-add, i still get the error(agent admitted to failure to sign using the key) but passwordless ssh/scp works. The following is the output of user@localmachine:~$ ssh -vvv remote@


View 1 Replies View Related

Ubuntu Networking :: Using 2 PCs To Run Parallel (passwordless Ssh Without IP)

Feb 18, 2011

I want use two computer to run OpenFOAM or Fluent software.These two computers are connected via a cross cable. I have access to another by "ssh maysam@" OR "ssh" The problem is i should have access to another PC by "ssh maysam-desktop" command which can run parallel. maysam-desktop is name of anothe PC and maysam is name of its user.

View 1 Replies View Related

CentOS 5 :: Passwordless SSH Not Working Both Ways?

Jul 10, 2010

I have 3 servers with Oracle 10g installed. In order for rsync to work for log shipping I need to have passwordless SSH configured.*Note: I did not configure these servers, 2 DBA's got canned and I'm left to fix this and I am not a DBA.I have done passwordless SSH in the past and it is easy.Here is my problem: (-> = passwordless ssh works)ServerA -> ServerCServerB -> ServerCBut I need all 3 to be able to do passwordless SSH to each other.I deleted all the files in /home/oracle/.ssh on all 3 servers and this is what I did for all 3 servers:

ssh-keygen -t rsa
ssh-keygen -t dsa
cat >> authorized_keys


View 13 Replies View Related

General :: Passwordless Ssh From System (root) Script?

Jun 14, 2010

What's the easiest way to have a system script (running as root) execute remote commands over ssh? I've written some scripts that execute commands remotely via ssh, and they work great when I run them as myself, as I've set up ssh-agent and keys for passwordless login. I'd like to call these when my laptop docks and undocks. I've been successful at running arbitrary scripts when docking/undocking, but since the ACPI event scripts run as root, trying to run my ssh script fails during authentication.

I tried using sudo with the -u and -i flags to simulate running the script as my user, e.g.: sudo -u redmoskito -i /home/redmoskito/bin/remote_command which successfully finds my private key and tries to use it, but the ssh-agent credentials are still missing, so it still needs my passphrase.

View 2 Replies View Related

Red Hat / Fedora :: Receive Error Code 255 Using Passwordless SSH?

Jun 14, 2011

I am trying to set up passworldess login - I am trying to automate ssh to use send commands from a Red Hat el5.2 server to a solaris 9 server (I did get it working from solaris 10-9).I have ran ssh-keygen -t rsa and then the ssh-copy-id and i can login passwordless via ssh. N HURRAH

Unfortunately when I use my scripts to automate the commands I ALWAYS receive an "Error Code - 255" - the command is successfully sent.

View 3 Replies View Related

Networking :: Passwordless SFTP Between Unix Box And Windows?

Mar 29, 2010

I have to establish password SFTP between one Unix box and Windows in which certain files will be pushed from unix to windows server. Our client is insisting on using TurboFTP on Windows for ssh daemon to run. There are two components in TurboFTO- client and server.

1. I need help if I need to install both. As far as my knowledge with this software is considered, I dont think TurboFTP client to be running as the server componoent will itself run sshd.

2. Also, when I try to add server in TurboFTP server console, it provides me two options - local and remote server types. Local uses 3830 port by default and uses ip If I use Remote server type which uses 3839 and I dont know what ip address to provide. I need help whether I shud go ahead with local server or remote server.

My doubt is if I consider local server type then whether my Unix box will be able to recognize if thie windows machine (which is also naving network specific ip address) has sshd running because windows has local server type enabled which uses

View 3 Replies View Related

General :: Passwordless Login In Using Ssh Via Non Root User?

Feb 12, 2010

I have been trying to establish a connection between two pcs via the ssh channel. I successfully made the connection as a root user, but when i tried as a non root user i had to type in the password the make contact with the other pc. how exactly does this passwordless login actually work?

View 3 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

Software :: Bash Processing For Listing Passwordless Users?

May 14, 2009

I was asked to list passwordless or locked accounts in a fedora system. As far as I know, fedora or RH dont allow passwordless accounts (the system locks the account Edit: ... unless you set passwd -d :-P ), so I might show info about locked accounts.

I am totally aware that I could do a grep or an awk searching for "!!" or "", but my people is asking me to check against passwd -S (which prints info of accounts). The thing, is that in Solaris you can check with passwd -a -s all the users, but in Linux I couldnt find anything similar. what approach do you reccomend for passing, say , the list of users ( like the output of awk searching only user names) to the command passwd -S one by one?

View 4 Replies View Related

CentOS 5 Networking :: Comfortable User Managment With Passwordless Ssh?

Jan 27, 2011

we are running a small cluster (CentOS 5.5) for research in fluid dynamics, using OpenFOAM and Fluent togehter with Sun Grid Engine. For these programs, ssh without password prompt in console is required. So far, I did the method described here: [URL]... with keys distributed at each node. However, imagine a new users needs to be created:

1. Creating user at every node.
2. Create key at every node
3. Distribute key to every node

Makes password prompt threetimes, for 50 nodes - quite a lot. The students dont like that really much, me neither. What I am asking for is any help to make this more comfortable. I am not really a system admin, but more a researcher with some knowledge in admin tasks. Actually, I would like to use a ldap authetication, were passwords are stored centrally. When the user first logs in to a machine, the home directory should be created. I think I can manage it to work.


View 7 Replies View Related

Ubuntu Security :: Resolving An Account Password With Pam-script When Using Passwordless SSH? Possible?

Oct 6, 2010

I'm trying to configure a process triggered by an SVN post-commit hook which will log into a different host and carry out an SVN update on a file path on that host before exiting. An earlier attempt mounted the remote filepath on the SVN host using sshfs and performed the update locally. This worked but it was incredibly slow (minutes to complete an SVN update).

So, Plan B was to set-up a passwordless login for the user the script runs as and then use pam-script to script a checkout from a repository using the same credentials. The problem is, passwordless SSH login using private/public keys appears to bypass the PAM authentication system or at least interact with it in a way that no environment variables (including the SSH user's name and pass) are resolved by the authentication script being used by pam-script.

I've tested the pam-script behaviour for normal log-ins and it exposes these variables fine. This leaves me in a Catch-22 with trying to script access on one host to perform actions on another while avoiding user/pass prompts or the need to store plaintext passwords on the remote host.

Anyone know if there's a way to resolve a user account password via PAM when using passwordless SSH or, another approach I could take to perform scripted tasks on the remote system requiring authentication? Ideally without storing the passwords on the remote system (at least in unencrypted form).

View 1 Replies View Related

Server :: Create A Webhost On An Running Fedora Server Which Runs Multiple Webpages + A Coldfusion Server?

Sep 29, 2010

have to create a webhost on an running fedora server which runs multiple webpages + a coldfusion serveri have to add an coldfusion virtual host to these.what i would do:*crate a new user & group*enter vhosts.conf and copy an existing host and modify it for the new one.*create an new folder and copy the main files (phpstarter and webroot) *chown the files for the right useri think an apache graceful would be needet

View 1 Replies View Related

Fedora :: Running A Command At Startup?

Mar 12, 2010

I'm trying to get synergy+ to work on Fedora 12 on start up. I'd like to be able to log into Fedora using my keyboard and mouse through synergy+. I've tried adding the line
Code:synergyc <localipaddress> at the end of the /etc/rc.local file but I still can't use my keyboard and mouse to log in. I've also tried adding the lineCode:su <username> -c "synergyc <localipaddress>" to /etc/rc.local but it still doesn't work. Just to clarify, I do have synergy+ working on Fedora but I need to start it after logging in on each reboot by switching my keyboard over to the other computer.

View 2 Replies View Related

Copyrights 2005-15, All rights reserved