Все записи автора MAKSIM IVANOV


#! /bin/sh
echo ‘$#’ $#
echo ‘$@’ $@
echo ‘$?’ $?

*If you run the above script as*

> ./test.sh 1 2 3

You get output:
$# 3
$@ 1 2 3
$? 0

*You passed 3 parameters to your script.*

$# = number of arguments. Answer is 3
$@ = what parameters were passed. Answer is 1 2 3
$? = was last command successful. Answer is 0 which means ‘yes’

SFTP fail

I think it may have to do with a welcoming message popping up after the successful login.
sftp doesn’t like welcoming messages.

Try to ssh in that server and see if any welcoming message pops up. It should be started from within ~/.bashrc so you can then comment out the respective line from there.

If you find yourself not knowing what to do, please post here the welcoming screen from an ssh session as well as the contents of ~/.bashrc