Server :: SSH To Work Without A Password Between CentOS And Cygwin
Jul 31, 2010
CentOS 5.4 Cygwin CYGWIN_NT-6.0-WOW64 1.7.5(0.225/5/3) I'm trying to setup password-less login from my CnetOS server to Win 2008 Server via ssh. I have followed the fab walk-through here and many others. When i try to connect I get this msg after a few seconds delay...
Code:
Connection closed by 10.8.0.6 When ran with ssh -vv...
Code:
[smegadmin@s ~]$ ssh -vv 10.8.0.6
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
[code]....
View 9 Replies
ADVERTISEMENT
May 16, 2011
I've seen how to do this from native linux native server to linux native server. Not a problem. My question has to do with ssh/scp exchange of key exchange between a windows cygwin server and a linux server.There seems to be no /home/root/.. to hold the key exchange files. I've tried this between a cygwin server with a /home/administrator/..subdirectory and the /root subdirectory on the linux server. Is this how I should do this?Someone else set this up between these two servers earlier but forgot to document how it was done in his notes.I don't want to break the existing systems by setting up the key generation incorrectly on the functioning pair's of servers.
View 7 Replies
View Related
May 17, 2009
I have a program that is completed under Linux, it requires library tidy, PCRE and libcurl, which could be found in Cygwin too.
I could compile my linux program through Cygwin and produce an EXE file, however it do require 'cygwin.dll' installed by the users.
I am wondering if I could have someway to produce out a stand-alone EXE file that could run independently from Cygwin ? ( I don't mind to combine that cygwin.dll and the EXE together for a larger EXE file).
View 1 Replies
View Related
Jul 28, 2010
As one of our friends told, I have downloaded and installed the CYGWIN on my winows xp pc, to learn and practice linux commands.when the icon of it is double clicked, its screen as appearing as below:
System1@system ~
$
MY DOUBT IS :
I could make a directory with command like mkdir. But after that it is not allowing commands like touch, vi, vim etc.How i have to write data or a file in it. Still anything to do after installing CYGWIN.
View 3 Replies
View Related
Oct 27, 2010
In my CentOS configuration, when I use vim6.3 to edit a file, then close it, and re-open it, my cursor starts out at the line where I last left off. In my cygwin (on Windows) configuration, when I use vim7.3, I don't get this behavior. The viminfo does exist and does seem to get read (because if I type '0 it will go to my last cursor location - but that is globally and could change the file being edited). I've also looked at the .viminfo file and see it getting updated as expected. In my .vimrc file, I have this:
Quote: set viminfo='100,<50,f1,"500,/100,:100
Note that on the CentOS side if I open foo, then I open bar, then I open foo again, my cursor is in the right place for foo, whereas on cygwin if I do this, my cursor would be at the 1st line of foo.. If I were to type '0, it would actually switch to editing bar and put the cursor where I last left off. Anyhow, this all boils down to asking how I get my cygwin vim to act like my CentOS vim.
View 3 Replies
View Related
Jan 20, 2011
My problem is that I cant "rewrite" older password to new. It looks like I do:
Changing password for user johny.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
all looks OK but after set up new password I can log in using OLD and NEW password. It's very unsecure for me. So in fact I cant change password and it looks like centos create next password to one accout and one account have more then one password... how can I prevent it? pls help me couse its very unsecure in my case.user looks in file shadow /etc/shadow like this:
johny:6JWuwPcQiWCCM:14994:0:99999:7:::
in etc/passwd looks like this:
johny:x:20010:20011::/home/gs-world:/sbin/nologin
how to delete all old passwords?
View 7 Replies
View Related
Mar 24, 2010
I just tried to setup telnet server by telnetd + inetd in cygwin 1.7, but not lucky.
Here is the command to setup inetd:
in inetd.conf I use default setting:
But after telnet the server, it will just stop at:
trace the source code, seems it stop in function getterminaltype by the lines:
I'm not familiar with the telnet protocol, so not sure what happening here.
View 4 Replies
View Related
Aug 30, 2009
i try to install mysql-server how do i create a password for it
yum install mysql mysql-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.optus.net
* updates: mirror.optus.net
[Code]...
View 1 Replies
View Related
Mar 21, 2011
As an example, I have two servers, sm-i222 and fileserv. sm-i222 is a Win2k3 system running cygwin. fileserv is a linux box running RHEL 4.7. sm-i222 maps /cygdrive/c to the c: drive and /cygdrive/d maps to the d: drive(actually a single 4TB RAID). from the sm-i222 server /cygdrive/c I call a small script from the crontab. The internal IP for fileserv is 10.0.0.7. See below.
cd /cygdrive/d/fileserv/home
rm -rf /cygdrive/d/fileserv/home/*
rsync -avz -e 'ssh -c blowfish' root@10.0.0.7:/home/* .
These three lines perform well in that they make a full transfer of the fileserv:/home/ directory on fileserv to the appropriate place on sm-i222 using rsync. I use rsync instead of scp because I have to traverse subdirectories and symbolic links in the /home/... filesystem on fileserv. What I'm looking to do is use rsync to do an incremental transfer/backup of only the files that have changed since the last full backup. I'll manage the times I do this manually or in crontab. A colleague says this is do-able, but not how. Rsync.org says this is do-able but not how. Cygwin says this is do-able... see rsync.org. I believe what I'm looking for is a single rsync line like I have above that only transfers the changed files on fileserv to sm-i222.
View 14 Replies
View Related
Apr 11, 2011
I was able to setup password-less ssh on two CentOS 5.5 servers, I don't encounter any problem on root account but when I try on another user it fails and ask for a password
This what I've done.
centostest1 = Source
centostest2 = Destination
On Source Server (centostest1)
1. ssh-keygen
2. ssh-copy-id -i id_rsa root@centostest2
ssh-copy-id -i id_rsa user@centostest2
3. Now to test
ssh root@centostest2 <--- no problem, no password needed
ssh user@centostest2 <--- problem, it asked the password for user
View 8 Replies
View Related
May 31, 2011
I'm running cygwin 1.7.7 on a win2k3R2 Standard edition server. I have a RHEL 4.7 linux host I'm scp'ing files from to the windows system using a simple cygwin scp command from what appears to be OpenSSH_5.5p1 on the cygwin host. When I run the simple scp command on the cygwin host, the counters initially display and increment/decrement, albeit what is at a much slower rate than is actually taking place. After the percent complete reaches a little less than 10%, all the counters from the cygwin console window cease to increment/decrement.
However, when I cd to the directory on the cygwin host where the file is being scp'ed to, the file is continuing to be transferred and a much higher rate than the counters seem to show. Finally, when the file transfer is complete by directly seeing the byte count as equal between the hosts, the scp counters will suddenly jump to 100% complete. This is not the case with my linux to linux scp's. The counters increment/decrement as expected and transfers are about what I'd expect over the same network infrastructure. This appears to be a cygwin ssh/scp implementation issue. I've posited this question to cygwin with no response as yet. The only reference I've been able to find on the 'net refers to buffering causing file transfers to appear to complete later than the transfer really does..........
View 3 Replies
View Related
Jul 7, 2010
The reason I want to delete the LUKS password is simply that I do not want to have to put it in for each server just to get the system to boot. I am planning to cluster the servers as well and like I said before I don't want to put the password in each time since they won't be running all the time.
View 3 Replies
View Related
Sep 3, 2009
I'm using on my smb.conf
# Sincronizacion de cuentas LDAP, NT y LM
# unix password sync = Yes
ldap passwd sync = Yes
[code]....
View 2 Replies
View Related
Feb 27, 2009
I am a Windows user for the last 14 years and am getting into the Linux world. I have a CentOS server set up at home and have been using SFTP. But now I am needing to install a program that has a exe file I can lauch from my Windows machine to the CentOS server but the only problem is it only uses FTP over port 21. I have found quite a few different posting on how to install FTP but only some of the commands they give work and I get a lot of no such directory. I will be using the FTP locally but have been getting frustrated setting it up. I do have it installed an am able to start the service but cannot connect. Is there a step by step information for setting this up? I am new to the command line and all the SCO stuff I used to know back in the early 90's is all gone from memory.
View 15 Replies
View Related
Oct 15, 2009
My server is Centos 5.3 I have php 5.1.6. some of plug-ins does not work I have to upgrade it to 5.2.6.
To upgrade it I have to install a third party repositories.How can I protect my current php in case if the repository does not work I enable ( or role back) the Centos default php?
View 5 Replies
View Related
Nov 3, 2009
I have been a loving fan of your software for years now and have been trying to move into a new dedicated server, getting away from my VPS I have been anchored to. I had to change static ip's on my main internet line and thus got locked out of my server. I have the box here and I can console into it but I cannot get the new ip address to work. I have tried so many things it would waste more time than asking for the correct answer.
I know you are wise in the ways of the server as you have gotten me out of a jam in the past. I am currently running Centos 5.4 and a trial version of WHM/cPanel (which needs to be re-registered to the new address if I can ever get back online.)
View 1 Replies
View Related
May 18, 2010
I am trying to connect to my VNC Server from a Windows 7 Box running TightVNC:I've followed all the instructions on this page:[URL]And I changed my xstartup scripts:
/etc/sysconfig/vncservers
# The VNCSERVERS variable is a list of display:user pairs.
#
[code]....
View 12 Replies
View Related
Aug 9, 2010
when I installed my server I had an FTP server running, I thought it was vsftpd. I stopped vsftpd one day though, and I could still FTP into my server. This mystery FTP daemon is SFTP (using port 22), and now it does not work. I've tried enabling vsftpd and I still cannot connect to my server. I've checked my firewall and I have FTP and SSH allowed. What might this mystery FTP program have been?
View 7 Replies
View Related
Nov 26, 2010
I created a cluster with two nodes and a machine for managers with luci, if a machine reboot the cluster function by transferring the resource (IP address), if forced to stop the machine (pull the plug) the cluster does not work.
View 1 Replies
View Related
Dec 12, 2010
mod_dir does not work properly with SSL (https) !?
When working with http, there is no problem: If url "http://www.abc.com/test" is requested, apache appends a "/" to the url and then respones to browser with code 301, telling it to request the newly-modified url ""http://www.abc.com/test/".
However, with https, things are not going as expected: If url "https://www.abc.com/test" is requested, the new url responsed by apache is "http://www.abc.com/test/", but not "https://...", resulting in browser's page load error.?
View 3 Replies
View Related
May 25, 2010
I was able to do on Debian and Ubuntu Servers X applications running on remote servers where I was able to login via SSH. Tried the same with CentOS did not worked. in /etc/ssh/sshd_config
[Code]....
View 1 Replies
View Related
Apr 16, 2009
I configured the serial consol on centos5 as follows
# dmesg |grep tty
Kernel command line: ro root=/dev/VolGroup00/LogVol00 console=tty0 console=ttyS0,9600n8
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A[code]......
But I could not consol Centos server from my labtop (win xp) Is there missing or wrong configurations ?
View 3 Replies
View Related
May 15, 2009
i have apache, php, mysql, etc installed, and running.
Phpinfo displays properly, and i can even do a few simple database calls via databases i made from the commandline.
I try to install the phpMyAdmin package (i think its from RPMForge, but it might be from EPEL). The package installs without problems, yet when i attempt to go to localhost/phpMyAdmin, i get a 404 error.
Is there something i need to do with my apache configuration to make this work? There seems to be very little documentation on this package.
If there isnt anything i could do, i could go through and do it by hand, but i want to have the advantage of using packages for the automatic updates.
EDIT1: Ok, i reinstalled the package, and now i get a 403:Forbidden instead of a 404.
Again, localhost/phpMyAdmin.
View 3 Replies
View Related
Mar 23, 2010
I just installed a fresh CentOS5.4 and started httpd & mysqld and did the following testing
1. named the following file as index.php and put to /var/www/html (default DocumentRoot)
<?php
echo 'connecting...';
$conn = mysql_connect('localhost','root','');
if(empty($conn))
[Code]....
View 3 Replies
View Related
Apr 2, 2010
Sendmail does not work anymore.
//deinstaled everything
[root@localhost ~]# top -b -n1 | mail -s 'Process snapshot' mymail@mymail.net
/usr/sbin/sendmail: No such file or directory
//reinstaled everything, restart sendmail
[root@localhost ~]# top -b -n1 | mail -s 'Process snapshot' mymail@mymail.net
[root@localhost ~]# /etc/mail/submit.cf: line 544: fileclass: cannot open '/etc/mail/trusted-users': World writable directory
//fixed that with '-o' in /etc/mail/submit.cf, restart sendmail
[root@localhost ~]# top -b -n1 | mail -s 'Process snapshot' mymail@mymail.net
// in mail.log:
Apr 2 12:49:16 localhost sendmail[6252]: o32AnGis006252: to=mymail@mymail.net
, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=49856, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
//test
[root@localhost ~]# telnet localhost 25
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused
//commented out #O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA
//in sendmail.cf, restart sendmail
//test
[root@localhost ~]# telnet localhost 25
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused
View 11 Replies
View Related
Apr 28, 2010
I have a dedicated server running CentOS 5, Plesk 9.2.2, SMTP Postfix and Courier-IMAP.The issue I have is that on all domains on the server receiving email works fine however sending email never seems to work. This is from email programs, my phone, webmail and PHP. None of them seem to be able to send email. If it is of worth Spam Assassin is running however I don't feel it is causing any problems.
View 7 Replies
View Related
Aug 20, 2010
I have been searching in the forum and google but still not lucky enough to figure out yetI have a lighttpd server runningbecause apache consume so much CPU and memory) andqmailtoaster (just setup).Here is the configuration in cgi modules:
Code:
cgi.assign = ( ".pl" => "/usr/bin/perl",
".cgi" => "/usr/bin/perl",
[code]....
View 2 Replies
View Related
Sep 30, 2009
installed a new centOS 5 server, and after the installation, everything seem to work well but for httpd not running. when i try to issue the restart command i get the following error:
[root@appdev ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 206 of /etc/httpd/conf/httpd.conf: Cannot load
[code]....
View 3 Replies
View Related
Oct 20, 2009
Don't work nslookup from clients guest OS.I have LinuxMint 7 and I'm installed VirtualBox on her. I created three guests OS. Two CentOS and XP
Name
The first CentOS linux1.starline.ca
The second CentOS centos.starline.ca
The third XP xp2.starline.ca[code].....
On the clients guest OS nslookup don't work. It write : timed out; no servers could be reached .What is going on? Why nslookup don't work from clients guest OS?On client machine in the file /etc/resolv.conf have record ameserver 168.135.88.2
View 2 Replies
View Related
May 13, 2010
I'm trying to make a DHCP server work on my CentOS 5.4 box, but I have placed it on another subnet than the one that it is going to serve. I use a helper address on my router to make the the DHCP requests being routed to the DHCP server on the other subnet.
dhcpd.conf file:
ddns-update-style interim
ignore client-updates
ubnet 10.160.195.160 netmask 255.255.255.224
[code]...
View 8 Replies
View Related