Latest posts
If You receive the error something like, despite the scp exist:
|
nsc-book:~ nsc$ scp root@loginroot.com:/root/filename ~/filename bash: scp: command not found nsc-book:~ nsc$ which scp /usr/bin/scp |
It may look silly, but please check if the destination server has that package too ;) I haven’t expected a CentOS server not having this simple package by default. Anyway, on CentOS it’s in openssh-clients package, and may be installed with command:
|
yum install openssh-clients |
Of if it exists there too, please check the PATH variable on the remote system, if it shosw the correct ipaths. Also, You may check .bashrc on remote user if it tries to overwrite the PATH value.
Like this:
Like Loading...
nsc
December 9, 2015
linuxbash scp not found, command not found, openssh-clients missing, remote scp problem, scp not found
Read more >
I’ve got this message on Ubuntu 12.04. Other servers seemed to work fine.
|
root@server:/tmp# git clone https://git.kolab.org/diffusion/RPK/roundcubemail-plugins-kolab.git Cloning into 'roundcubemail-plugins-kolab'... error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none while accessing https://git.kolab.org/diffusion/RPK/roundcubemail-plugins-kolab.git/info/refs fatal: HTTP request failed |
The fix: Append CA root of that cert to file: /etc/ssl/certs/ca-certificates.crt
Like this:
Like Loading...
nsc
December 8, 2015
linuxcertificate verification, git, git error, ssl error
Read more >
Previous part: Part 1 – Cracking the RSA keys (Part 1 – getting the private exponent) PART 2 For a private key generation, we need to create an asn1parse.txt file with the contents of:
|
asn1=SEQUENCE:rsa_key [rsa_key] version=INTEGER:0 modulus=INTEGER:0 pubExp=INTEGER:0 privExp=INTEGER:0 p=INTEGER:0 q=INTEGER:0 e1=INTEGER:0 e2=INTEGER:0 coeff=INTEGER:0 |
Like this:
Like Loading...
nsc
November 23, 2015
linuxcrack private exponent, crack rsa, generate keys, openssl, private key, recover private exponent, recover private key, rsa private key
Read more >
The whole idea of the RSA private key is the hardness of factorisation of two very large prime numbers. That’s why recommended RSA keys are >2048bit long. I won’t get into RSA details itself. If You need any info, it’s here: WIKI For a sake of demonstration, 256bit public_key will be used. With the current hardware that we have these days, it’s very easy crackable.
|
-----BEGIN PUBLIC KEY----- MDwwDQYJKoZIhvcNAQEBBQADKwAwKAIhALDxlk/H4PXkJ2ERM3PZmXB5cH0ApFr+ IrDuluL/kQIzAgMBAAE= -----END PUBLIC KEY----- |
Lets convert it to a more ‘mathematical’ expression:
Like this:
Like Loading...
nsc
November 23, 2015
linuxcrack private exponent, crack rsa, crack the private key, openssl, private exponent, private key, public exponent, public key, recover private exponent, recover private key, recover rsa, rsa key
Read more >
Directadmin doesn’t have possibility to add SSL certificate for a subdomain, unless You add it as a separate domain in domain control. You may also use separate SSL certificates by creating a custom httpd (or nginx, but it would require to change the CAROOT line) file in user configuration dir i.e. loginroot.com.cust_httpd (or loginroot.com.cust_nginx if it’s nginx).
|
|*if SUB="subdomain"| |?KEY=/usr/local/directadmin/data/users/loginroot/domains/subdomain.loginroot.com.key| |?CERT=/usr/local/directadmin/data/users/loginroot/domains/subdomain.loginroot.com.cert| |?CAROOT=SSLCACertificateFile /usr/local/directadmin/data/users/loginroot/domains/subdomain.loginroot.com.cacert| |*endif| |
Like this:
Like Loading...
nsc
July 27, 2015
linuxcust_httpd, cust_nginx, DA, directadmin, ssl, ssl subdomain
Read more >
If You are getting this error after update:
|
[Thu Jul 09 13:32:08.465065 2015] [lsapi:error] [pid 467230:tid 140242392512256] [client 10.3.13.37:65135] [host loginroot.com] Backend error on sending request(GET / HTTP/1.1); uri(/) content-length(0) (lsphp is killed?): Wrong LSAPI header type: 6 instead of expected 7 |
That’s because cloudlinux developers modified their lsapi code, and didn’t add variable default value. Very nice guys… The fix:
Like this:
Like Loading...
nsc
July 9, 2015
linuxCL, cloudlinux, lsapi, mod_lsapi
Read more >
DADA mail error:
|
[Wed Jun 24 11:35:49 2015] mail.cgi: install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: ../../ ../../perllib /sw/lib/perl5/5.8.6/darwin-thread-multi-2level /sw/lib/perl5 ../../DADA/perllib ../../../ ../../DADA ../../../DADA/perllib ../../../perllib ./ ../ ./../../DADA /home/login/domains/loginroot.com/public_html/mailinglist/DADA/perllib /home/login/domains/loginroot.com/public_html/mailinglist /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /home/login/perl5/lib/perl5 /home/login/perl5/lib/perl5/x86_64-linux-thread-multi /home/login/perllib /home/login/perl/home/login/domains/loginroot.com/public_html/mailinglist/DADA/perllib /home/login/perl/home/login/domains/loginroot.com/public_html/mailinglist /home/login/perl/usr/local/lib64/perl5 /home/login/perl/usr/local/share/perl5 /home/login/perl/usr/lib64/perl5/vendor_perl /home/login/perl/usr/share/perl5/vendor_perl /home/login/perl/usr/lib64/perl5 /home/login/perl/usr/share/perl5 /home/login/perl.) at (eval 20) line 3, <CONFIG> line 1. [Wed Jun 24 11:35:49 2015] mail.cgi: Perhaps the DBD::mysql perl module hasn't been fully installed, [Wed Jun 24 11:35:49 2015] mail.cgi: or perhaps the capitalisation of 'mysql' isn't right. [Wed Jun 24 11:35:49 2015] mail.cgi: Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge. [Wed Jun 24 11:35:49 2015] mail.cgi: at /DADA/App/DBIHandle.pm line 166 |
Like this:
Like Loading...
nsc
June 24, 2015
linuxdada, dadamail, dbd::mysql, mysql perl module, perl module
Read more >