Most Popular
1500 questions
65
votes
6 answers
How to pass password to scp command used in bash script?
Possible Duplicate:
Connect through SSH and type in password automatically, without using a public key
I have a bash script that makes dump of DB then copies file from one server to another but it always asks for password before connection.
scp…
chubbyk
- 923
65
votes
4 answers
How to install libpq-dev on Centos 5.5
In order to develop one web application based on postgresql, i need to install libpq on my centos.
I can install it by "apt-get install libpq-dev" on ubuntu, but i can not install it on centos by "yum install libpq".
Who can tell me how to install…
larry
- 4,217
65
votes
5 answers
How do you use apt-get to only install critical security updates on ubuntu?
How do you use apt-get to only install critical security updates on ubuntu?
We'd like to only upgrade packages that need to be upgraded for security reasons, without upgrading all other packages.
readonly
- 3,579
65
votes
7 answers
How do you wait for an exe to complete in batch file?
I'm trying to create a script to execute an exe on shutdown in order to install sp1. my script goes something like (not actual bat script).
If installed GOTO END
Install.exe
END:
My problem is that when it runs, it starts the installer, then…
Kravlin
- 765
65
votes
6 answers
Hostnames - What are they all about?
I've recently been "forced" to perform some sysadmin work, while this isn't something that I absolutely love doing I've been reading, experimenting and learning a lot.
There is one fundamental aspect of server configuration that I've not been able…
Alix Axel
- 2,843
65
votes
2 answers
What Should be the Permissions of Apache SSL Directory, Certificate, and Key?
I have my cert.pem and cert.key files in /etc/apache2/ssl folders.
What would be the most secure permissions and ownership of:
/etc/apache2/ssl directory
/etc/apache2/ssl/cert.pem file
/etc/apache2/ssl/cert.key file
(Ensuring https:// access…
JP19
65
votes
10 answers
How can I find the biggest directories in Unix / Ubuntu?
Is there a way in Unix to see the biggest directories on disk?
I need to know why I'm almost out of space on the server,= and I don't know where most of the space is used.
aneuryzm
- 1,804
65
votes
4 answers
How to change sshd port on Mac OS X?
I want to change which port sshd uses on a Mac server. For example, let's say from port 22 to port 32.
Editing /etc/sshd_config does not seem to work. Does anyone know how to change it? I'd prefer a method that's compatible with all OSX versions…
Alexander Artemenko
- 1,463
65
votes
11 answers
Denyhosts vs fail2ban vs iptables- best way to prevent brute force logons?
I'm setting up a LAMP server and need to prevent SSH/FTP/etc. brute-force logon attempts from succeeding. I've seen many recommendations for both denyhosts and fail2ban, but few comparisons of the two. I also read that an IPTables rule can fill the…
spiffytech
- 1,153
65
votes
16 answers
What is the correct temperature for a server room?
When I was working in our server room, I noticed that it was very cold.
I know that the server room has to be cold to offset the heat of the servers, but perhaps it is TOO cold.
What is an appropriate temperature to keep our server room at?
freddiefujiwra
- 1,687
65
votes
7 answers
Government censors HTTPS traffic to our website. Workarounds?
I am helping run a website that has been blocked for political reasons by the same Russian agency that has previously tried blocking Telegram (RosKomNadzor). This is not the first time it happens, and previously we would just change the domain, but…
Mary
- 613
- 5
- 7
65
votes
37 answers
What is the single most influential book every sysadmin should read?
For software developers, there are some books you must absolutely read.
What is the single most influential book every programmer should read?
How about for sysadmins? Is there a similar list of books?
Gulzar
- 381
65
votes
4 answers
PowerShell script, showing commands run
I am playing around with PowerShell scripts and they're working great. However, I am wondering if there is any way to also show all the commands that were run, just as if you were manually typing them in yourself. This would be similar to "echo…
Nelson Rothermel
- 663
64
votes
3 answers
ssh on windows - Corrupted MAC on input
I've installed OpenSSH on Windows.
I can successfully connect to my remote server via ssh with Putty from this Windows machine.
But when opening a PowerShell, and trying
ssh my_user@1.2.3.4
I've got the error:
debug3: send packet: type 5 …
Raoul Debaze
- 831
64
votes
11 answers
How Often Should I Update our Linux Server?
I am responsible for managing both our production server (mail, web, database are all on one server) and our test server. Both are built on Debian. However as I am very new to system administration, I have only been installing updates as I come…
Noah Goodrich
- 20,497