Expect Script For Sftp Fails Under Cron
Oct 1, 2007
The following expect script works perfectly from the command line, but fails under cron:
Code:
#!/usr/bin/expect
spawn sftp -b /root/sftp.txt root@***.***.***.***
expect "password:"
send "password
"
interact
The output is:
Code:
spawn sftp -b /root/sftp.txt root@***.***.***.***
root@***.***.***.***'s password:
I can't work out if the password just isn't getting sent, or if the interact command is causing the script to fail. I also can't fathom why this would only cause a problem under cron.
View 2 Replies
ADVERTISEMENT
May 28, 2009
Here is my GigeNet review. I am about 8 months with them and I thought I own them one review.
I applied for managed dedicated server and in few hours I got message that my server is ready. It was windows 2008 data center box with Hyper-V which I use for VPS hosting. Soon after it was setup I had problems with routing my VPS machines to outside world. I got response in 3 minutes with solution . After that I requested support many times, on different issues, like setting up my own BW monitoring for VPS, windows licensing, firewalls, CPanel (I have some Linux VPS too), and each time I got prompt response from their very kind support. I really have feeling they have 3 people working just for me.
Later on I bought another server, requested all kinds of stuff from them like transferring IP blocks from one server to another and changing CPU on live server (with 15 minutes of downtime, I don't know how they did that ), and they were prompt and professional every single time.
In the past I had few horror stories, but finally I found dedicated server company which is almost too good to be true.
I really recommend them to everyone, especially if you can get one of theirs special offers, when they basically give you all above mentioned for the price of unmanaged server.
View 13 Replies
View Related
Oct 25, 2009
What could I expect in the web hosting world for £1/m or £10/y?
View 14 Replies
View Related
Jul 20, 2009
I currently use a half cabinet and think I'm paying way too much. I pay $1,000/month for half rack (10 meg bandwidth) 20 amps power, etc. Service and connectivity has been great (Ashburn, VA data center) but I think it's just over priced.
What should I pay for half cab, 20 amps, 5-10 MEG bandwidth, 20 amps?
On that note, what if I was to go for a full cabinet solution, same power and bandwidth, what is ultimately the expected price for a reputable colo provider?
View 12 Replies
View Related
May 2, 2009
I'm considering upgrading our company's server. We run an ecommerce site php/mysql based, we have about 12,000 visitors per day and we use up about 1500 gig per month. Simple ecommerce site, nothing fancy. We had some complains from people that our site is "slow" (despite it running smoothly for us, but these people claimed that only our site was "slow" and that they use fast connections) so that's why now I'm thinking maybe its time to upgrade.
We are using softlayer, for an extra $50 per month they recommended that we upgrade from our Opteron 1216 to "Xeon 3220 - 2.40GHz (Kentsfield) - 2 x 4MB cache"
Are we going to see a serious increase in performance? Will the increase be enough that most visitors will actually be able to feel it?
View 14 Replies
View Related
May 30, 2008
How much bandwidth/month can we expect with them ? I read several stories... someone wrote he was able to push only about 3TB and others can push 5TB - 9TB
So what's your experience?
View 5 Replies
View Related
Apr 27, 2008
I have several unmanaged Xen-based VPSes with a company that I've for the most part been very pleased with for the past couple years. I recently got an email from them saying that the physical server my VPS was on needed some components replaced and that the VPS would be "briefly unavailable" on a Saturday morning to do so.
Now, my definition of "briefly unavailable" is a few minutes, maybe 5 minutes max. I assumed that they would migrate the VPSes to a backup physical server while they fixed the other one, then migrate them back afterwards. In fact, I thought that Xen was capable of doing this in real-time with no downtime.
But the VPS was down for over an hour, so they obviously just shut down the box with the VPSes running. Because of the nature of my website, that particular Saturday was very inconvenient for me to have extended downtime. I was rather upset and contacted them to let them know, but they seemed rather indifferent and suggested that I look into upgrading to their redundant/failover services.
So my question is, am I being unreasonable to expect that *planned* downtime be limited to a couple minutes, or is it normal for companies to just take the servers down while they perform the maintenance? I thought that real-time migration to a different server was one of the benefits of virtual servers and I was surprised that they didn't take advantage of it.
View 6 Replies
View Related
Dec 10, 2007
I recently changed server http://psrecipe.com/ to a new one, the dns has seemingly resolved for everyone else expect me.
It's been a week since changing the nameservers and host but it's leading me to the old server still.
Quote:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@psrecipe.madebyidea.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
I can't understand why this is doing it.
View 9 Replies
View Related
Apr 21, 2007
when I try to run yum update it throws an error
Quote:
Gathering header information file(s) from server(s)
Server: CentOS-3 - Addons
retrygrab() failed for:
http://mirror.centos.org/centos/3/ad...rs/header.info
Executing failover method
failover: out of servers to try
Error getting file http://mirror.centos.org/centos/3/ad...rs/header.info
[Errno 4] IOError: <urlopen error >
when I run /etc/easyapache it too fails
Quote:
root@server1 [~]# /scripts/easyapache
Testing connection speed...(this could take a while)............Done
Ping:32.076 Testing connection speed to 69.90.250.35 using pureperl...(120500.00 bytes/s)...Done
Ping:32.179 Testing connection speed to 69.90.250.34 using pureperl...(120500.00 bytes/s)...Done
Ping:49.545 Testing connection speed to 69.72.164.152 using pureperl...(76681.82 bytes/s)...Done
Ping:49.605 Testing connection speed to 69.72.164.155 using pureperl...(70291.67 bytes/s)...Done
Ping:51.603 Testing connection speed to 198.66.92.147 using pureperl...(76681.82 bytes/s)...Done
5 usable mirrors located
Fetching http://layer1.cpanel.net/buildapache.sea (0)....@69.90.250.35......connected......receiving...1%...2%...3%...4%...5%...6%...7%...8%...9%...10%...11%...13%...14%...15%...16%...17%...18%...19%. ..20%...21%...22%...23%...25%...26%...27%...28%...29%...30%...31%...32%...33%...34%...35%...36%...38%...39%...40%...41%...42%...43%...44%...45%...46%. ..47%...48%...50%...51%...52%...53%...54%...55%...56%...57%...58%...59%...60%...62%...63%...64%...65%...66%...67%...68%...69%...70%...71%...72%...73%. ..75%...76%...77%...78%...79%...80%...81%...82%...83%...84%...85%...87%...88%...89%...90%...91%...92%...93%...94%...95%...96%...97%...98%...100%...... Done
Creating directory buildapache
Verifying archive integrity... All good.
Uncompressing buildapache........................................................................................................................................... ...................................................................................................................................................... ...................................................................................................................................................... .................................................................
Checking Update System........Your operating system's rpm update method (yum) was not able to locate the glibc package. This is an indication of an improper setup. You must correct this error before you can proceed.
Please correct the conflicts and try again!
initfpsuexec: using apache 1.x support
Waiting for httpd to restart..............finished.
root 7208 0.8 0.5 46200 5772 ? S 02:06 0:00 /usr/local/apache/bin/httpd -DSSL
httpd started ok
View 7 Replies
View Related
Apr 3, 2007
to set up a batch file on our server (Windows Server 2003) to upload an xml document to the web everyday. Due to nature of our business, we require the ftp to be secure (SFTP), so i need a DOS SFTP add-on: any suggestions.
It is also a requirement that we PAY for it (management?! ),
View 1 Replies
View Related
Oct 14, 2009
we have a WHM account... we have different accounts on that...and for each account, there are add-on domains underneath that. (i hope you know what i mean)
and we set it up to use only SFTP to connect to server. no FTP.
after we have set it up that way, it seems that we can only connect to SFTP using 1 user/pass for each account... that is the same user/pass we use for Cpanel of each account.
say, i have Account A... under Account A, i have addon domains: A1.com, A2.com, A3.com...
setting SFTP only on that server, all those addon domains of Account A, can only use 1 user/pass to login to SFTP which is the cpanel access also of Account A.
question is.... is this behavior correct??
how can we create a different user for each add-on domain?
View 4 Replies
View Related
May 1, 2008
I'm trying to upload about 200 Gb of data and it became clear to me to route it out a specific connection sftp was the way to go.. (the ssh2 kind)
The problems I'm now having is that the 2 applications I rely on cannot get the job done.. CuteFTP Pro 8 can't even begin to get it done it crashes, errors out etc. and for while there it looked like the free program WinSCP was going to get it done but now it errors out/crash's and while it actually did get about 1/4 of the data done, it seems to think when it reported it done.. it got it all (that is when it doesn't crash for no reason, these crashes only occurred mainly when I tried to get it do 3/4's or the rest of the data)
So anyway.. recommend me a good client app if you can.. (that does real folder sync transfers) preferably ssh2/sftp, I'm uploading to dreamhost if that makes a difference I assume it doesn't though..
View 14 Replies
View Related
Mar 3, 2007
I've noticed that on most servers I use, downloading a file over SFTP is about 4x slower than downloading over HTTP. Can anyone tell me why and if it's possible to tune the SFTP server?
- neither the server nor my desktop shows significant CPU use so it isn't the processing overhead of encryption.
- The symetric key ciphers used should not increase the number of bytes transmitted.
- The file being transferred is already bzipped so the HTTP isn't faster due to compression.
- I'm using OpenSSH on Linux / FreeBSD server side, and WinSCP on Windows XP / Vista client side.
View 1 Replies
View Related
Oct 25, 2009
direct root logon to a server is disabled; using another login, obviously. However, I need to be able to SFTP files from my computer to a directory on the server using said login - yet it does not have correct permissions, evidently, and therefore can't even see the directory I need to be able to SFTP files to.
Tried CHOWNing the directory with that usename, giving it 777 permissions, etc.
View 5 Replies
View Related
Jul 28, 2009
i am not able to get connect to SFTP server
domain : testing.com
user : test@testing.com
pass : 123456
port : 7256
& getting following error
#####################
Status: Connecting to testing.com:7256...
Response: fzSftp started
Command: open "test@testing.com@testing.com" 7256
Command: Trust new Hostkey: Yes
Command: Pass: ************
Error: Authentication failed.
Error: Critical error
Error: Could not connect to server
#####################
note that we are able to get connected to the server with FTP using same username & password
i asked our data centre regarding this issue & they suggested to use root password , but we don't want to give root password to the client
View 13 Replies
View Related
May 19, 2009
I have it setup and have a user created that can upload files to my website.
The problem that I am running in to is that the files that this user uploads are owned by him not the cpanel website user. Thus when I try to view the page in my browser I get a server 500 error since the site is set to only serve up pages that are owned by the cpanel website user.
When using FTP in the same way we did not have this problem as the file that was uploaded would automatically be owned by the cpanel website user.
View 0 Replies
View Related
Jul 18, 2009
I just got a barebone server. Installed apache2, php5, mysql,phpmyadmin.
I only have SSH access to the server. I wish to use CoreFTP to transfer some webpage files to /var/www folder. I can login the server using CoreFTP's SSH/SFTP and it displays all the files and directories, but I do not have the permission to write.
My question is, how do I give myself permission to write? Here is the id of my user:
uid=1000(charlie) gid=1000(charlie) groups=1000(charlie),4(adm),20(dialout),24(cdrom),46(plugdev),110(lpadmin),111(sambashare),112(admin)
View 3 Replies
View Related
Dec 6, 2007
I'm noticing that no one seems to offer SSH or SFTP access to Windows hosts. It seems it would be more difficult to offer this, but does anyone reputable offer this?
I am planning on uploading semi-private MS Access databases (hence the lack of Unix options) for site use, and I'd rather not expose them unencrypted.
View 1 Replies
View Related
Aug 18, 2009
How do you plan new network cable on your rack?
5e utp
5e ftp
6 utp
6 sstp
6a sftp
View 8 Replies
View Related
Nov 15, 2008
I have installed ProFTPd through Webmin onto Ubuntu 8.10 Server edition.
I can connect to ProFTPd via FTP on Port 21 no problem, but currently am unable to via SFTP (using WinSCP).
I would like to block all FTP access on Port 21 and only make it only possible to connect via SFTP/SSH on Port 22.
View 1 Replies
View Related
Aug 29, 2007
Most of my background is the Linux/Mac world, but I do have ample Windows skill set, just not as refined or aware of all the available applications in Windows world, geared toward Joe User.
My accountant needs to run two sets of backups. First, he wants to backup his documents to an offsite location (space on his web hosting service) and he wants them to be encrypted on the web hosting server, which is understandable and recommended.
Short of installing TrueCrypt and using Filezilla with a manual process , is there any free or low-cost (but well supported) that would automatically upload revised documents and data files in encrypted form? This would not be very much data, just simple documents and accounting data files.
Secondly, he wants to have a "snapshot" of his HD to a USB portable drive (standard 2.5 HD). On Linux, I'd recommend Rsync, on Mac, Rsync or SuperDuper (and others), but on Windows, any recommendations? I see Unison, etc. I would just want it to update any files that have changed to make subsequent backups run much faster, such as only 15-18 minutes (depending on amount of data changed) and make the drive bootable, so in the event he looses his HD in his laptop, he could boot from the USB portable drive and be back up and running.
While I know I could easily figure out all this on a more manual basis, looking for things that would be friendly for Joe User to use and/or be something that can be setup and would run pretty much on it's own, assuming the backup drive was connected or system was on the Internet to upload the files, etc.
View 1 Replies
View Related
Apr 26, 2007
I am unable to find how to resume file transfor via sftp and command line:
I use PUT command to upload file, but when connections fails and I start again, the transfer starts from its beginning - how could I made it to check the uploaded part and then resume?
View 1 Replies
View Related
Oct 5, 2007
I'm not that confident with installing or compiling on Linux and I guess that's where the problem is. So any assistance may go along way.
Basically I am running a AMD64 on a Fedora Core server. I noticed when I wrote a php script which I want to sftp some data to another server I was getting a message saying that :
Quote:
Call to undefined function ssh2_connect()
I thought this was a bit strange as I usually have had this feature running without a problem on other machines... Anyway after investigating the problem it looked as though I needed to add a couple of extensions 'OpenSSL' and 'libssh2' as specified on this page :[url].
I downloaded them and OpenSSL appeared to install. However when trying to install libssh2 I received the following:
Quote:
/usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(md5_dgst.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/ssl/lib/libcrypto.a: could not read symbols: Bad value
Obviously I can't continue onward until I get this problem fixed, but have been searching around for near 7 hours now and seem to be chasing my tail? Can anyone point on what I am doing wrong?
BTW within the libssh2-0.17 dir I am first running ./config then make then make install.
View 0 Replies
View Related
Oct 21, 2014
FTP is a very old transfer technology with a lot of security problem.
Why don't enable directly SSH or SFTP on Plesk by default or by a simple way?
It's very difficult to enable it now
I'm loosing a lot of time to find how to enable it on plesk 12 and still not undestanding why do not work.
View 3 Replies
View Related
Jul 25, 2008
I'm looking for a relatively cheap shared host, but I'm having trouble finding one with SSH/SFTP transfers. Everyone has FTP, but my concern is that FTP itself is not secure. I was reminded of this recently: http://www.43folders.com/2008/07/14/dump-ftp. Wikipedia documents this as well: http://en.wikipedia.org/wiki/Ftp#Security_problems. So with FTP, my passwords would be transmitted in the clear. (If I'm wrong, please correct me!)
I've been looking at Godaddy or 1&1*. 1&1 has a plan with SSH access that's about twice the cost of the plan I'm looking at. I'm not sure it's worth double the cost.
I'm to the point where I think I've overthought the variety of hosts, but in my estimation it's an important feature. Does anyone (dis)agree that it's important? Any other ideas of hosts?
*I was looking seriously at Bluehost also until I read some of their recent shenanigans here; thanks to everyone here for discussing their problems!
Also, to avoid the inevitable question of what I'm looking for in a host:
100 GB of space
1000 GB of bandwidth/month
Linux-based server
Apache server
10 MySQL databases
PHP (preferably 5)
Python support
Some sort of control panel interface
Good support reputation, preferably ticket-based and with chat support
Automated or easy Wordpress installation would certainly be nice.
View 11 Replies
View Related
Jun 13, 2007
I'm trying to connect to the server via SFTP but when I check the box to do that in Total Commanders settings box it says I need the OpenSSL dll's. I downloaded the must current file from [url] but I can't find any dll files in it and I'm unsure how to proceed.
View 1 Replies
View Related