How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

December 23, 2013

scp: command not found

Filed under: Linux — Tags: , , , — admin @ 11:58 am

Today I was trying to copy something from one server to other using scp . But I have a surprise while I was running the correct command scp file.tar root@server:/home well a error was occurred that scp is missing. Now on sending server the scp was because I see the output of usage: scp when I try on destination surprise no scp.
which scp
/usr/bin/which: no scp in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

So to install it just run :
yum install openssh-clients

September 11, 2012

putty slow to connect – SSH

Filed under: Linux — Tags: , , , , , — admin @ 10:56 am

Hello
Today , I was trying to connect to one of my server and observe that after I introduce user/password I don’t enter immediately on log on. It take some time to reach at command promt.

Well first of all I think this may happen when you have load on a server, however my server was fine, so what other reason should can be ?
Well I try to make a nslookup on my ip and this was resolved. So I have a reverse ptr.
Well I updated the resolv.conf with google nameserver and the problem disappear .

So basically just add at the beginning of /etc/resolv.conf the line bellowl:

nameserver 8.8.8.8

Part 2:
Waiting for SSH login prompt
It seems that the problem still persist. So , i try from a linux server
ssh -vvv ip_of_server
and did notice this
debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found
debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found
debug1: Unspecified GSS failure. Minor code may provide more information
debug2: we did not send a packet, disable method

Ok, now I check the /etc/ssh/sshd_config and see that
GSSAPIAuthentication yes
SSAPICleanupCredentials yes

are both on yes. I disable them and now everything is ok.

Part 3
You may use also into /etc/ssh/sshd_config
UseDNS no

Powered by WordPress