LoginSignup
3
4

More than 5 years have passed since last update.

急にSFTP接続できなくなったら

Posted at

目的

急にcodaからsftp接続できななった時の対処メモ

現象

ssh接続はできるけど、sftp接続しようとするとエラーとなって接続出来なくなったこと有りました。
sftpコマンド直接打ち込んでもダメだし、codaとか使用してもダメ。

原因

どうやら、.bashrc等の記述が悪さをしているよう。
昔の投稿で.bashrcに書いた記述が悪さをしていました。
なので、対話形式なのかどうかで、対話形式のときのみ処理をするように.bashrcを修正。

.bashrc
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

[ -z "$PS1" ] && return # 対話形式でなければ終了
source ~/.nvm/nvm.sh
nvm use 0
3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4