Pages : 1
#1 Le 15/03/2007, à 21:09
- madrippeur
Probleme d'acces ssh [RESOLU]
Bonjour a vous
J'ai depuis ce matin un probleme trés genant
Lorsque je veux me conencter en ssh a mon serveur, j'ai un joli message tres tres genant
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
Last login: Thu Mar 15 18:17:02 2007 from xxx.xxx.xxx.xxx
/usr/bin/lesspipe: 158: Syntax error: EOF in backquote substitution
-bash: /etc/bash_completion.d/debconf: Input/output error
-bash: /etc/bash_completion.d/ooffice.sh: Input/output error
-bash: /etc/bash_completion.d/pon: Input/output error
Connection to xxx.xxx.xxx.xxx closed.
Auriez vous une idee de la marche a suivre pour eviter ce gros soucis s'il vous plait ? c'ets un peu genant d'avoir un serveur sans acces LOL
merci beaucoup d'avance de vos reponses
Dernière modification par madrippeur (Le 20/03/2007, à 11:45)
Hors ligne
#2 Le 15/03/2007, à 21:40
- Varimathras
Re : Probleme d'acces ssh [RESOLU]
Ca a déjà marché ? Tu utilises quoi ? Openssh ?
Je suppose que tu as bien ouvert le port 22 du routeur distant ? Curieux comme erreur, pourquoi il vient nous parlé d'ooffice lui ??
Dernière modification par Varimathras (Le 15/03/2007, à 21:40)
"Carnet de bord" d'un utilisateur de solutions libres : Neurologeek.net
Dell 9400 core2Duo - Debian Sid - 2.6.18-4-amd64
Laptop : Debian Etch - 2.6.18-4-686
Serveurs : Debian Sarge 2.4.34-1-K7 & Debian Etch 2.6.18-3-k7
Hors ligne
#3 Le 15/03/2007, à 21:42
- madrippeur
Re : Probleme d'acces ssh [RESOLU]
Cela a fonctionne a merveille pendant plusieurs mois, mais du jour au lendemain plus aucun accés
J'utilise openssh-server.
Hors ligne
#4 Le 15/03/2007, à 22:21
- madrippeur
Re : Probleme d'acces ssh [RESOLU]
Voila par perte de patiene j'ai sorti le disque dur du serveur, et je l'ai monte sur un boitier usb. J'ai extrait les fichiers en question, a savoir : debcon et ooffice.sh
J'espere que cela pourra vous aider a m'aider
fichier debconf :
have debconf-show &&
_debconf-show()
{
local cur
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
COMPREPLY=($( compgen -W '--listowners --listdbs --db=' -- $cur ) \
$( apt-cache pkgnames -- $cur ) )
}
complete -F _debconf-show debconf-show
le fichier ooffice.sh
# Programmable bash_completion file for the main OpenOffice.org applications
# It is based on /etc/profile.d/complete.bash from SUSE Linux 10.1
_def=; _dir=; _file=; _nosp=
if complete -o default _nullcommand &> /dev/null ; then
_def="-o default"
_dir="-o dirnames"
_file="-o filenames"
fi
_minusdd="-d ${_dir}"
_minusdf="-d ${_file}"
if complete -o nospace _nullcommand &> /dev/null ; then
_nosp="-o nospace"
_minusdd="${_nosp} ${_dir}"
_minusdf="${_nosp} ${_dir}"
fi
complete -r _nullcommand &> /dev/null
# General OOo expanding shell function
_ooexp_ ()
{
# bash `complete' is broken because you can not combine
# -d, -f, and -X pattern without missing directories.
local c=${COMP_WORDS[COMP_CWORD]}
local a="${COMP_LINE}"
local e s g=0 cd dc t=""
local IFS
shopt -q extglob && g=1
test $g -eq 0 && shopt -s extglob
# Don't be fooled by the bash parser if extglob is off by default
cd='*-?(c)d*'
dc='*-d?(c)*'
case "${1##*/}" in
oobase) e='!*.+(odb)' ;;
oofromtemplate) e='!*.+(stw|dot|vor|stc|xlt|sti|pot|std|stw)' ;;
oodraw) e='!*.+(sxd|std|dxf|emf|eps|met|pct|sgf|sgv|sda|sdd|vor|svm|wmf|bmp|gif|jpg|jpeg|jfif|fif|jpe|pcd|pcx|pgm|png|ppm|psd|ras|tga|tif|tiff|xbm|xpm|odg|otg|odc|odi|sds)' ;;
oocalc) e='!*.+(sxc|stc|dif|dbf|xls|xlw|xlt|rtf|sdc|vor|slk|txt|htm|html|wk1|wks|123|xml|ods|ots|csv)' ;;
oomath) e='!*.+(sxm|smf|mml|odf)' ;;
ooweb) e='!*.+(htm|html|stw|txt|vor|oth)' ;;
ooffice) e='!*.+(sxd|std|dxf|emf|eps|met|pct|sgf|sgv|sda|sdd|vor|svm|wmf|bmp|gif|jpg|jpeg|jfif|fif|jpe|pcd|pcx|pgm|png|ppm|psd|ras|tga|tif|tiff|xbm|xpm|odg|otg|odc|odi|sds|doc|dot|rtf|sxw|stw|sdw|vor|txt|htm?|xml|wp|wpd|odt|ott|sxm|smf|mml|odf|sxi|sti|ppt|pps|pot|sxd|sda|sdd|sdp|vor|cgm|odp|otp|odb|sxc|stc|dif|dbf|xls|xlw|xlt|rtf|sdc|vor|slk|txt|htm|html|wk1|wks|123|xml|ods|ots|csv|sxg|xgl|txt|odm|sgl|stw|dot|vor|stc|xlt|sti|pot|std|stw|htm|html|stw|txt|vor|oth)' ;;
oowriter) e='!*.+(doc|dot|rtf|sxw|stw|sdw|vor|txt|htm?|xml|wp|wpd|odt|ott)' ;;
ooimpress) e='!*.+(sxi|sti|ppt|pps|pot|sxd|sda|sdd|sdp|vor|cgm|odp|otp)' ;;
*) e='!*'
esac
case "$(complete -p ${1##*/} 2> /dev/null)" in
*-d*) ;;
*) s="-S/"
esac
IFS='
'
case "$c" in
\$\(*\)) eval COMPREPLY=\(${c}\) ;;
\$\(*) COMPREPLY=($(compgen -c -P '$(' -S ')' -- ${c#??})) ;;
\`*\`) eval COMPREPLY=\(${c}\) ;;
\`*) COMPREPLY=($(compgen -c -P '\`' -S '\`' -- ${c#?})) ;;
\$\{*\}) eval COMPREPLY=\(${c}\) ;;
\$\{*) COMPREPLY=($(compgen -v -P '${' -S '}' -- ${c#??})) ;;
\$*) COMPREPLY=($(compgen -v -P '$' -- ${c#?})) ;;
\~*/*) COMPREPLY=($(compgen -f -X "$e" -- ${c})) ;;
\~*) COMPREPLY=($(compgen -u ${s} -- ${c})) ;;
*@*) COMPREPLY=($(compgen -A hostname -P '@' -S ':' -- ${c#*@})) ;;
*[*?[]*) COMPREPLY=($(compgen -G "${c}")) ;;
*[?*+\!@]\(*\)*)
if test $g -eq 0 ; then
COMPREPLY=($(compgen -f -X "$e" -- $c))
test $g -eq 0 && shopt -u extglob
return
fi
COMPREPLY=($(compgen -G "${c}")) ;;
*)
if test "$c" = ".." ; then
COMPREPLY=($(compgen -d -X "$e" -S / ${_nosp} -- $c))
else
for s in $(compgen -f -X "$e" -- $c) ; do
if test -d $s ; then
COMPREPLY=(${COMPREPLY[@]} $(compgen -f -X "$e" -S / -- $s))
elif test -z "$t" ; then
COMPREPLY=(${COMPREPLY[@]} $s)
else
case "$(file -b $s 2> /dev/null)" in
$t) COMPREPLY=(${COMPREPLY[@]} $s) ;;
esac
fi
done
fi ;;
esac
test $g -eq 0 && shopt -u extglob
}
complete -d -X '.[^./]*' -F _ooexp_ ${_file} \
oobase \
oofromtemplate \
oodraw \
oocalc \
oomath \
ooweb \
ooffice \
oowriter \
ooimpress
unset _def _dir _file _nosp _minusdd _minusdf
fichier pon
# Debian GNU/Linux pon/poff(1) completion
# Copyright 2002 Baruch Even <baruch@debian.org>
# License: GNU GPL v2 or later
have pon &&
_pon()
{
local cur conns
[ -r /etc/ppp/peers/ ] || return 0
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
conns=$(ls --color=none /etc/ppp/peers | egrep -v '(\.bak|~)$')
if [ $COMP_CWORD -eq 1 ]; then
COMPREPLY=( $(compgen -o filenames -W "$conns" $cur) )
fi
return 0
}
[ "$have" ] && complete -F _pon pon
have poff &&
_poff()
{
local prev cur conns
[ -r /etc/ppp/peers/ ] || return 0
COMPREPLY=()
prev=${COMP_WORDS[COMP_CWORD-1]}
cur=${COMP_WORDS[COMP_CWORD]}
conns=$(ls --color=none /etc/ppp/peers | egrep -v '(\.bak|~)$')
if [[ "$cur" == -* ]]; then
COMPREPLY=( $(compgen -W '-r -d -c -a -h -v' -- $cur) )
return 0
fi
# first parameter on line or first since an option?
if [ $COMP_CWORD -eq 1 ] && [[ "$cur" != -* ]] || \
[[ "$prev" == -* ]]; then
COMPREPLY=( $(compgen -o filenames -W "$conns" $cur) )
fi
return 0
}
[ "$have" ] && complete -F _poff poff
# vim:ft=sh:
#!/bin/sh
#
# lessfile/lesspipe
# $Id: lessopen,v 1.4 1998/05/12 09:37:46 torin Exp $
# Plus POSIX sh changes by Y.Dirson
#
# Less filter for viewing non text files.
#
# Written by: Behan Webster <behanw@pobox.com>
# Many Modifications by Darren Stalder
# Further Modifications by Thomas Schoepf <schoepf@debian.org>
#
# combined lessfile and lesspipe to avoid duplication of decode stage
# shell is sure icky. I'm real tempted to rewrite the whole thing in Perl
#
# Unfortunately, this means that I have filename dependencies sprinkled
# throughout the code. If you don't want lessfile to be called that,
# you'll need to change the LESSFILE envar below.
#
# Usage: eval `lessfile` or eval `lesspipe`
#
# less passes in:
# $1 filename to be viewed with less (used by LESSOPEN)
# and possibly (if used by lessfile)
# $2 filename that was created during LESSOPEN
TMPDIR=${TMPDIR:-/tmp}
BASENAME=`basename $0`
LESSFILE=lessfile
# Helper function to list contents of ISO files (CD images)
iso_list() {
isoinfo -d -i "$1"
isoinfo -d -i "$1" | grep -q ^Rock\.Ridge && iiopts="$iiopts -R"
isoinfo -d -i "$1" | grep -q ^Joliet && iiopts="$iiopts -J"
echo
isoinfo -f $iiopts -i "$1"
}
if [ $# -eq 1 ] ; then
# we were called as LESSOPEN
# if the file doesn't exist, we don't do anything
if [ ! -r "$1" ]; then
exit 0
fi
# generate filename for possible use by lesspipe
umask 077
if [ $BASENAME = $LESSFILE ]; then
TMPFILE=`tempfile -d $TMPDIR -p lessf`
if [ -z "$TMPFILE" ]; then
echo >&2 "Could not find essential program 'tempfile'. Exiting"
exit 1
fi
fi
(
# possibly redirect stdout to a file for lessfile
if [ $BASENAME = $LESSFILE ]; then exec > $TMPFILE; fi
# Allow for user defined filters
#if [ -x ~/.lessfilter -a -O ~/.lessfilter ]; then
if [ -x ~/.lessfilter ]; then
~/.lessfilter "$1"
if [ $? -eq 0 ]; then
if [ $BASENAME = $LESSFILE ]; then
if [ -s $TMPFILE ]; then
echo $TMPFILE
else
rm -f $TMPFILE
fi
fi
exit 0
fi
fi
# Decode file for less
case `echo "$1" | tr '[:upper:]' '[:lower:]'` in
*.arj)
if [ -x "`which unarj`" ]; then unarj l "$1"
else echo "No unarj available"; fi ;;
*.tar.bz2)
if [ -x "`which bunzip2`" ]; then
bunzip2 -dc "$1" | tar tvvf -
else echo "No bunzip2 available"; fi ;;
*.bz)
if [ -x "`which bunzip`" ]; then bunzip -c "$1"
else echo "No bunzip available"; fi ;;
*.bz2)
if [ -x "`which bunzip2`" ]; then bunzip2 -dc "$1"
else echo "No bunzip2 available"; fi ;;
*.deb|*.udeb)
echo "$1:"; dpkg --info "$1"
echo
echo '*** Contents:'; dpkg-deb --contents "$1"
;;
*.doc)
if [ -x "`which catdoc`" ]; then catdoc "$1"; fi ;;
*.gif|*.jpeg|*.jpg|*.pcd|*.png|*.tga|*.tiff|*.tif)
if [ -x "`which identify`" ]; then
identify "$1"
else
echo "No identify available"
echo "Install ImageMagick to browse images"
fi
;;
*.iso)
if [ -x "`which isoinfo`" ]; then iso_list "$1"; fi ;;
*.bin|*.raw)
if [ -x "`which isoinfo`" ]; then
file "$1" | grep -q ISO\.9660 && iso_list "$1"
fi
;;
*.lha|*.lzh)
if [ -x "`which lha`" ]; then lha v "$1"
else echo "No lha available"; fi ;;
*.pdf)
if [ -x "`which pdftotext`" ]; then pdftotext "$1" -
else echo "No pdftotext available"; fi ;;
*.rar|*.r[0-9][0-9])
if [ -x "`which rar`" ]; then rar v "$1"
elif [ -x "`which unrar`" ]; then unrar v "$1"
else echo "No rar or unrar available"; fi ;;
*.rpm)
if [ -x "`which rpm`" ]; then
echo "$1:"; rpm -q -i -p "$1"
echo
echo '*** Contents:'
rpm -q -l -p "$1"
else echo "rpm isn't available, no query on rpm package possible"; fi ;;
*.tar.gz|*.tgz|*.tar.z|*.tar.dz)
tar tzvf "$1" ;;
# Note that this is out of alpha order so that we don't catch
# the gzipped tar files.
*.gz|*.z|*.dz)
gzip -dc "$1" ;;
*.tar)
tar tvf "$1" ;;
*.jar|*.war|*.ear|*.xpi|*.zip)
if [ -x "`which unzip`" ]; then unzip -v "$1";
elif [ -x "`which miniunzip`" ]; then miniunzip -l "$1";
elif [ -x "`which miniunz`" ]; then miniunz -l "$1";
else echo "No unzip, miniunzip or miniunz available"; fi ;;
*.7z)
if [ -x "`which 7za`" ]; then 7za l "$1";
else echo "No 7za available"; fi ;;
*.zoo)
if [ -x "`which zoo`" ]; then zoo v "$1";
elif [ -x "`which unzoo`" ]; then unzoo -l "$1";
else echo "No unzoo or zoo available"; fi ;;
esac
) 2>/dev/null
if [ $BASENAME = $LESSFILE ]; then
if [ -s $TMPFILE ]; then
echo $TMPFILE
else
rm -f $TMPFILE
fi
fi
elif [ $# -eq 2 ] ; then
#
# we were called as LESSCLOSE
# delete the file created if we were lessfile
#
if [ $BASENAME = $LESSFILE ]; then
if [ -n "$BASH" ]; then
if [ ! -O "$2" ]; then
echo "Error in deleting $2" > /dev/tty
fi
fi
if [ -f "$2" ]; then
rm -f "$2"
else
echo "Error in deleting $2" > /dev/tty
fi
fi
elif [ $# -eq 0 ] ; then
#
# must setup shell to use LESSOPEN/LESSCLOSE
#
# I have no idea how some of the more esoteric shells (es, rc) do
# things. If they don't do things in a Bourne manner, send me a patch
# and I'll incorporate it.
#
# first determine the full path of lessfile/lesspipe
# if you can determine a better way to do this, send me a patch, I've
# not shell-scripted for many a year.
FULLPATH=`cd \`dirname $0\`;pwd`/$BASENAME
case "$SHELL" in
*csh)
if [ $BASENAME = $LESSFILE ]; then
echo "setenv LESSOPEN \"$FULLPATH %s\";"
echo "setenv LESSCLOSE \"$FULLPATH %s %s\";"
else
echo "setenv LESSOPEN \"| $FULLPATH %s\";"
echo "setenv LESSCLOSE \"$FULLPATH %s %s\";"
fi
;;
*)
if [ $BASENAME = $LESSFILE ]; then
echo "export LESSOPEN=\"$FULLPATH %s\";"
echo "export LESSCLOSE=\"$FULLPATH %s %s\";"
else
echo "export LESSOPEN=\"| $FULLPATH %s\";"
echo "export LESSCLOSE=\"$FULLPATH %s %s\";"
fi
;;
esac
#echo "# If you tried to view a file with a name that starts with '#', you"
#echo "# might see this message instead of the file's contents."
#echo "# To view the contents, try to put './' ahead of the filename when"
#echo "# calling less."
else
echo "Usage: eval \`$BASENAME\`"
exit
fi
Dernière modification par madrippeur (Le 15/03/2007, à 22:41)
Hors ligne
#5 Le 16/03/2007, à 13:29
- zerros
Re : Probleme d'acces ssh [RESOLU]
oula, j'espère que ton disque dur n'est pas mort !!
boot dessus et force un fsck.
Hors ligne
#6 Le 16/03/2007, à 14:36
- madrippeur
Re : Probleme d'acces ssh [RESOLU]
niark niark
fsk ne me fait aucun soucis, ne me trouve pas d'erreur notables et au reboot le resultat est le même
Je me suis dis si vraiment il me faut tout reinstaller, autant tenter un truc de barbare :
J'ai pris les fichiers en question sur mon pc de bureau et je les ai transferer sur le disque dur qui "déconne" passez moi l'expression Je ne pense pas que cela puisse faire du bien, mais de toute façon je tente le coup car je pense que je serai obligé de tout reinstaller sur un nouveau disque dur (je n'en ai pas encore).
La je vais monter le disque dur dans mon serveur et tenter un boot et des accés ssh, je vais bien voir :s je commence à desespérer
Je vous tiens au courant, et merci de votre intéret
Hors ligne
#7 Le 20/03/2007, à 11:45
- madrippeur
Re : Probleme d'acces ssh [RESOLU]
Aprés quelques jours de testes cela refonctionne à merveille !
Je n'ai pas vraiment compris le pourquoi du comment, mais bon un ptit résolu pour cette affaire
merci de votre attention les amis
Hors ligne
Pages : 1