Server :: Adding A Host To Known_hosts Non-interactively?
Mar 9, 2011
I have an automated setup (debian) which includes a startup script that rsyncs to a server (always the same server). Everything works well - just that I have to manually confirm that the host is supposed to be added to the known_hosts
Code:
The authenticity of host 'myserver.com (xx.xx.xx.xx)' can't be established.
RSA key fingerprint is 9b:ee:a6:47:hb:92:ac:76:81:94:18:7d:ad:8c:3e:25.
[code]....
View 2 Replies
ADVERTISEMENT
Jan 25, 2011
I start/stop lots of new instances as I'm learning to use Amazon EC2. Every temporary instance is added to the known_hosts file. Is this ever a problem for others who use EC2 a lot?
I'd like to tell ssh to skip this step anytime I connect to amazonaws.com. Is there a way to do that in the config? I'm using Linux & openssh.
View 2 Replies
View Related
Sep 8, 2009
Many of mails sent from my mail server that are in Queue;The main reason is deffered by domains like yahoo,aol,etc.but there is one more error that i keep getting and that is Host Unknown,Below is an example from mail log,The catch is,test mail sent on the same email id sent from my personal mail from the same server i.e. url was deliveredHowever,another mail containing client information sent from customercare@mycompanysdomain ended up in queue.
There are more examples of the same,around 20 domain have the same problem.
Sep 7 14:33:46 server2 sendmail[24591]: n8793jiC024589: to=<abc@xyz.fi>, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=163672, relay=xyz.fi., dsn=5.1.2, stat=Host unknown (Name server: xyz.fi.: host not found)
Sep 7 22:09:42 server2 sendmail[6407]: n87Gdffa006403: to=<abc@def-fgh.com>, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=152474, relay=def-fgh.com., dsn=5.1.2, stat=Host unknown (Name server: def-fgh.com.: host not found)
View 2 Replies
View Related
Feb 12, 2010
I've trying to add a route to a host to force traffic out of a clustered IP address...
IE I have a cluster and the IP address moves from host to host on failure of a resource. The IP address is just a simple alias of an interface so for example... bond0:0 192.168.1.1 and bond0 192.168.1.10
What I want to do is force a program that starts up on the cluster hosts which sends packets out to a listening server to only send out of the cluster ip address.
I did a route add -host 172.22.2.2 gw 192.168.1.1. But this doesn't seem to work if i try to send a ping the packets still go out the wrong address, and more and above that for some reason the ping doesn't work at all. If i remove the route the ping will work again.
View 6 Replies
View Related
Mar 2, 2011
i have some problem with nagios adding remots hosts in localhost.cfg (/etc/nagios/objects/localhost.cfg) file in that i am able to only one remote host if i add one more host in that file i got below error #/usr/sbin/nagios -v /etc/nagios/nagios.cfg
Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL
[Code]...
View 7 Replies
View Related
Apr 19, 2011
want to use bootchart to see how much time its taking for things to load up and the desktop to settle. I am having a little trouble figuring out how to make sure that bootchard loads up each time (non-interactively) so I can easily put up the results and see what could be done better. The man page of bootchartd says :-"bootchartd is commonly used to profile the boot process for the purpose of speeding it up. In this case, it is started by the kernel as the init process. This is configured by adding the init=/sbin/bootchartd option to the kernel command line -- either interactively or by editing the bootloader's configuration file. Please refer to the documentation of your bootloader for details (e.g. lilo, grub or yaboot)."
View 2 Replies
View Related
Nov 3, 2010
how to interactively operate with program using bash? such as program would ask user to select choice between "a/b/c" and then input enter to confirm? i know i could use
program << EOF
a
EOF
to choise "a", but how to input "enter", so that i could call this program in my script.
View 5 Replies
View Related
Oct 19, 2010
I was wondering if it's possible to move the known_hosts file from ~/.ssh/known_hosts to ~/somewhere/.ssh/known_hosts . I have a server running Plesk and the user home directories do not have write permissions (they do have write permissions within the subfolders, however).
I was able to move the authorized_keys file by editing sshd_config AuthorizedKeysFile , but when I try to log in without password, I'm still prompted every time if I want to add the host to list of known hosts, and it fails to save every time since it cannot write to known_hosts. Thus I am still unable to automate some processes. I'd like known_hosts to be located in the same location as my authorized_keys, which does have correct permissions for users.
View 1 Replies
View Related
Jan 17, 2011
Currently I am populating a global ssh_known_hosts file with RSA and DSS host keys.
Code:
short_name, fqdn, 192.168.x.y ssh-dss.........
short_name, fqdn, 192.168.x.y ssh-rsa.........
[code]....
View 1 Replies
View Related
Oct 30, 2009
Bit of an odd one, this. I've migrated a website from my old server to a new machine. Both servers run Ubuntu + Apache2. Both only serve a single site, apart from the default site.I've flipped the domain name to the new IP address.The trouble is that after moving the virtual host config over into sites-available, with the necessary link in sites-enabled, Apache attempts to serve from the default web root (/var/www) rather than the actual site content (in /var/www/technology). So for example, an attempt to browse.
View 1 Replies
View Related
Feb 14, 2011
I had a populated known_hosts file. I was editing it and for a split second I saw a permission error when I saved it. I went to check what the error was and the known_hosts file was blank.
Now if I ssh to a host I get something like the following:
bash-3.2$ ssh root@
The authenticity of host '' can't be established. RSA key fingerprint is b3:c3:e3:83:23:83:93:63:13:23:63:63:d3:c3:33:a3. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added ' (RSA) to the list of known hosts.
Sounds good... but when I look at my known_hosts file, it is blank. I check the permissions and it is owned by my account. .ssh/ permissions are correct too.
I deleted known_hosts and then tried connecting again, and it creates a file but it stays blank. No host keys get added.
It just started happening after I saw that permission error.
root user's known_hosts file updates fine though.
View 1 Replies
View Related
Jan 15, 2009
I have a script on several of our systems that runs a series of checks, and e-mails the results to the system administrator. The workstations in question are running a derivative of Fedora Core. The code for the script is listed below.
Code:
#!/bin/bash
# This script will run the df and uptime commands,
[code]...
View 2 Replies
View Related
Oct 15, 2009
Wanting to join my CentOS5.3 to a windows 2003 active directory. Configured kerberos and samba.
Code:
[libdefaults]
default_realm = domain
dns_lookup_realm = false
[code].....
View 5 Replies
View Related
Jun 9, 2011
I'm trying to rsync files and directories from a RedHat linux host(v 4.5 & 4.7) to a Windows server 2003R2 Standard Edition with cygwin running. I'm executing the rsync command from the cygwin shell. The transfer involves rsync'ing approximately 1 TB of data from the linux server to the windows server. After about 280+GB of data transfer, the transfer just dies.
There seems to be no particular file or directory that the transfer stops at. I'm able to rsync GB's of data from other linux hosts to this cygwin server with no problem. Files and directories rsync fine.The network infrastructure is essentially the same regardless of the server being rsync'ed in that it is GB Ethernet running through Cisco GB switches. There appear to be no glitches or hiccups across the network path.
I've asked the folks at rsync.samba.org if they know of any problems or issues. Their response has been neutral in that if the version of rsync that cygwin has ported is within standards then there is no rsync reason this problem should happen.I've asked the cygwin support site if they know of any issues and they have yet to reply. So, my question is whether the version of rsync that is ported to cygwin is standard. If so, is there any reason cygwin & rsync keep failing like this?
I've asked the local rsync on linux guru's and they can't see any reason this should fail from a linux perspective. Apparently I am our company cygwin knowledge base by default.
View 3 Replies
View Related
Jul 19, 2009
Just something that struck me while working on our virtual servers today.
I have bonded 3 NICs at the host in Ubuntu Server 8.04 LTS. They are using mode 0 for Round-robin. Point is to increase the speed/performance of all the servers, but mainly the fileserver. The fileserver is a virtual server running Ubuntu Server 8.04 LTS on VMware Server 2.0.
1) I noticed the NIC in the slave OS reported link speed as 1000 and Im unable to change it as the NIC (virtual one) doesnt support it. Does this not really matter, as the NIC doesnt exist, and it will run at higher speeds anyway? Or do I have to remove the bond on the host, bridge all 3 interfaces from the host to the slave OS, and then make a bond in the slave OS?
2) While at it, does mode 0 only increase performance on data being sent from the host or does it also increase the available incoming bandwidth?
View 1 Replies
View Related
Apr 17, 2010
I installed apache server on my Fedora 12. Its showing the test page 127.0.0.1, but when I give the address 97.168.234.76 (0r www.chaalu-kam.com), it tells that the requested url could not be retrieved.
I have made the following additions to the /etc/httpd/conf/httpd.conf file
Code:
In addition to this, I have added this to my /etc/hosts file
Code:
I wanted to test the Apache server on my laptop only by putting an html file in /var/www/html and naming it as index.html. I want this index.html page to be displayed when I put www.chaalu-kam.com in my browser. What should I do? My firewall is off too
View 10 Replies
View Related
Jun 10, 2011
Has anyone had any experience on using SUA(Services for UNIX Applications) rsync to "pull" files down to the Win2k3R2 server from a linux rsync host?I was trying to use cygwin rsync before until I found out from cygwin that the cygwin port of rsync was "flakey" and would fail intermittently for no apparent reason. cygwin suggested I use SUA or SFU for rsync services.
I've looked for/ am looking for any experience using SUA rsync to copy files down from a linux rsync host to the Windows host via rsync on the Windows host. Also, if you have done this successfully, do you have any pointers/caveats you can share on how you got it working? What I am basically looking to do is copy files and subdirectories of files from a linux host using rsync to some static location on a Windows server on a scheduled basis so that I can backup the windows server to tape using Symantec's Backup Exec application.
I'm doing it this way to avoid deploying the Remote Agents for either linux or Windows on the target hosts. As an alternative I've seen reference to a product called DeltaCopy that uses a native Windows rsync port with the native linux port of rsync to do what I need also.I realize this is not a strictly linux question, but more of a hybrid as I'm moving data to and from Windows and linux hosts. So, if this is too Windows-y a question, please say so and I'll withdraw my question.
View 2 Replies
View Related
Apr 27, 2010
I am Amit, working with IGate. I am able to configure NIS server and client,but after configuring server and client,when I add a new user to server and client and when I login througy new user from client, It shows error "user cannot found".I added a new user to NIS server make entry of user to client pc in /etc/auto.master file and restarted the services bind,nfs,autofs,portmap on server also restarted the serveces on client bind,autofs,portmap then alon I cannot login by new user on client matchine. Please tell me what is cause and how to resolve it.I shared server's /home dir and on client pc automounted the server's /home dir by making entries in /etc/auto.misc file on client pc.
View 7 Replies
View Related
Oct 14, 2010
I rented a server to run CS 1.6 game servers. I had someone install Apache and configure my server to be able to use control panel for my game servers( i am running 4 gservers and have 5 ips = 1 ip is free). When i type my primary ip in the web browser it displays the Apache test page.
My question is can i add pages to the Apache without messing up anything with the control panel or my game servers. I am familiar with html. My primary ip is used for 1 of th egame servers but i can change that if necessary. And if possible to add pages how to add a site name, sth like [url] instead of entering the primary ip to display the content.
View 4 Replies
View Related
Jun 7, 2010
Afternoon all, we have an older box which hosts all our corporate mail, but he's a bit old, small hard drive, etc. We have a new app which sends a lot of mail and 2 weekends in a row has killed the box.So I want to play a bit with postfix, and have it installed and ready. The main question is can I have him 'send' all the mail out but keep the incoming since it's not much going to the primary? Naturally it's yes, but what do I need to look at record wise?I know there are new things like spf, spoofing, etc and when someone get's that message from admin@domain.com, there servers naturally reverse lookup, but he won't be the box that receives for that domain so will it simply not accept?
View 3 Replies
View Related
Jan 15, 2010
This probably sounds like a stupid question, but I need to add a NIC to an existing server running Ubuntu Server edition 8.10. My question is what changes I need to make once the NIC is physically installed? I guess it will not be autoconfigured, so I will have to add it to the /etc/network/interfaces manually, which is ok as I need to set it up with a static interface anyway.Is there a good How-to or set of instructions on how to do this?
View 1 Replies
View Related
Mar 14, 2011
I have configured a CENTOS 5.5 server with DHCP + DNS. The network environment contains clients to obtain IP dynamically and some amy be configured manually. Until noe I have not used any GUIs for the configuration.
Now I want to manually add some hosts to my DNS. Can this be done by directly adding the host names to data files (pointed by the f/w and rev zones)? Or should this be done differently?
What are the good DNS GUI tools available for CentOS?
View 6 Replies
View Related
Nov 24, 2010
If i want to add new MX in my domain name then what to do in new mx server. Suppose my existing mail server is test.com whose mx record is below
test.com. 14400 IN MX 0 mail.test.com.
test.com. 14400 IN MX 5 mx-01.test23.net.
So, what need to change in test23.net server.
View 1 Replies
View Related
Jul 1, 2011
I'm an experienced PC technician running a slackware 13.1 distro on a server at home. I've currently got 2x 1TB drives in the box allocated as raid1 for the OS and everything I want to run on the machine. I'd like to think my question/needs are fairly straight forward, I am buying 2x 2TB drives to add to this machine as it serves as a NAS box for one of its roles. I'd like these in raid0 as the data that would be going on it is not that important to me. The question is, after adding the new drives to the system, once I boot up, what do I need to do to the system to get the drives added and working sucessfully as a single raid0 volume that I can then samba share out to my network. To clarify, I understand a little of mdadm as I've used it to raid1 my existing setup when I installed, and I'm fine with the samba bit after.
View 5 Replies
View Related
May 27, 2011
we have installed the Centos on my server and configured the postfix with our domain [URL] as example. If I send any email through squirrel email, Emails are going from [URL] instead of [URL].
View 8 Replies
View Related
Oct 23, 2009
hHow would I add my SSH server to run levels 3,4,5? I have been trying to search google for this answer to my problem for hours and cannot have any luck.
View 2 Replies
View Related
May 21, 2010
i had 1 server and its hostname is resolving fine.
i purchased 1 vps and its hostname isnt resolving.
for server1 say hostname is server1.domain.com
and for vps i add server2.domain.com
and when i ping my server2.domain.com i get Host Unknown error.
do i add Hostname and make it resolve in VPS.
i want to use hostname like server2.domain.com.
i want both server to have common domain name but diff hostname.
View 5 Replies
View Related
Mar 3, 2011
I currently have a home server, running Gentoo, with IPv4 connectivity through Qwest.I feel that it is important that this server also be available through IPv6 (I'm aware that, after exhaustion, my end still might not get an address through DHCP).I currently use dyndns.org to provide me with a DNS entry mapping jrvanwhy.homelinux.net to my IPv4 address.I do not have any sort of tunnel set up yet for IPv6 traffic yet. The new domain name does not necessarily have to be the same [URL].I do not wish to spend any money on this.Is there some free service I can register for that would do both the tunneling and the DNS entry? Is there a service that can supply me with an IPv6 DNS entry, if I get a static IPv6 address with another tunnel broker, like Hurricane Electric?
View 2 Replies
View Related
Jun 28, 2011
I have a freebsd server and I want to add the expiry date through the normal user(not through the su).
View 2 Replies
View Related
May 2, 2010
I am facing problem in adding new users in ldap server and client for a long time. I configure ldap server and client successfully and I can login the client machine by a user. User is created on server during configuring the server but after same time when I create a new user on server and create a home dir for the same user on client machine and assign 700 permission on home dir of same user and copy the /etc/skel/.* /home/user-dir and when run the command "#chown -R user:users /home/user" it shows invalid user error.
View 1 Replies
View Related