Skip to main content
Removed "[SOLVED]" from title, made title more clear
Link

[SOLVED]SSH works to ssh login inworks but sftp candoes not

deleted 1259 characters in body
Source Link
l0o0
  • 151
  • 1
  • 6

I think there must be something wrong on the configure file(I don't know which configure file). This post is the same problem. I found one line in my bashrc.

# .bashrc

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

# User specific aliases and functions
export LD_LIBRARY_PATH=/nfs3/onegene/user/group1/linxingzhong/opt/lib:${LD_LIBRARY_PATH}
#export PATH=/nfs2/pipe/RNA/soft/R-3.1.2/bin/R:$PATH
#export R_HOME=/nfs2/pipe/RNA/soft/R-3.1.2/
#export R_USER=linxinzhong
export PATH=/export/home/linxingzhong/opt/bin:$PATH
export PATH=/nfs3/onegene/user/group1/linxingzhong/opt/bin:$PATH
#export PATH=$PATH:/nfs2/pipe/RNA/soft/R-3.1.2/bin
export PYTHONPATH=/nfs3/onegene/user/group1/linxingzhong/opt/local/lib/python2.6/site-packages
alias tmux='tmux -2'
#export R_LIBS=/nfs3/onegene/user/group1/linxingzhong/opt/R-packages
export R_LIBS=/nfs3/onegene/user/group1/linxingzhong/opt/R-packages
#[ -f $HOME/opt/bin/zsh ] && exec $HOME/opt/bin/zsh -l
zsh

After I remove the last line, I can connect to the sftp. This is weird.

I think there must be something wrong on the configure file(I don't know which configure file). This post is the same problem. I found one line in my bashrc.

# .bashrc

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

# User specific aliases and functions
export LD_LIBRARY_PATH=/nfs3/onegene/user/group1/linxingzhong/opt/lib:${LD_LIBRARY_PATH}
#export PATH=/nfs2/pipe/RNA/soft/R-3.1.2/bin/R:$PATH
#export R_HOME=/nfs2/pipe/RNA/soft/R-3.1.2/
#export R_USER=linxinzhong
export PATH=/export/home/linxingzhong/opt/bin:$PATH
export PATH=/nfs3/onegene/user/group1/linxingzhong/opt/bin:$PATH
#export PATH=$PATH:/nfs2/pipe/RNA/soft/R-3.1.2/bin
export PYTHONPATH=/nfs3/onegene/user/group1/linxingzhong/opt/local/lib/python2.6/site-packages
alias tmux='tmux -2'
#export R_LIBS=/nfs3/onegene/user/group1/linxingzhong/opt/R-packages
export R_LIBS=/nfs3/onegene/user/group1/linxingzhong/opt/R-packages
#[ -f $HOME/opt/bin/zsh ] && exec $HOME/opt/bin/zsh -l
zsh

After I remove the last line, I can connect to the sftp. This is weird.

added 1201 characters in body; edited title
Source Link
l0o0
  • 151
  • 1
  • 6

SSH [SOLVED]SSH works to login in but sftp can not

IsI think there any way to find outmust be something wrong on the cause of this problemconfigure file(I don't know which configure file). This ?post is the same problem. I found one line in my bashrc.

# .bashrc

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

# User specific aliases and functions
export LD_LIBRARY_PATH=/nfs3/onegene/user/group1/linxingzhong/opt/lib:${LD_LIBRARY_PATH}
#export PATH=/nfs2/pipe/RNA/soft/R-3.1.2/bin/R:$PATH
#export R_HOME=/nfs2/pipe/RNA/soft/R-3.1.2/
#export R_USER=linxinzhong
export PATH=/export/home/linxingzhong/opt/bin:$PATH
export PATH=/nfs3/onegene/user/group1/linxingzhong/opt/bin:$PATH
#export PATH=$PATH:/nfs2/pipe/RNA/soft/R-3.1.2/bin
export PYTHONPATH=/nfs3/onegene/user/group1/linxingzhong/opt/local/lib/python2.6/site-packages
alias tmux='tmux -2'
#export R_LIBS=/nfs3/onegene/user/group1/linxingzhong/opt/R-packages
export R_LIBS=/nfs3/onegene/user/group1/linxingzhong/opt/R-packages
#[ -f $HOME/opt/bin/zsh ] && exec $HOME/opt/bin/zsh -l
zsh

After I remove the last line, I can connect to the sftp. This is weird.

SSH works to login in but sftp can not

Is there any way to find out the cause of this problem ?

[SOLVED]SSH works to login in but sftp can not

I think there must be something wrong on the configure file(I don't know which configure file). This post is the same problem. I found one line in my bashrc.

# .bashrc

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

# User specific aliases and functions
export LD_LIBRARY_PATH=/nfs3/onegene/user/group1/linxingzhong/opt/lib:${LD_LIBRARY_PATH}
#export PATH=/nfs2/pipe/RNA/soft/R-3.1.2/bin/R:$PATH
#export R_HOME=/nfs2/pipe/RNA/soft/R-3.1.2/
#export R_USER=linxinzhong
export PATH=/export/home/linxingzhong/opt/bin:$PATH
export PATH=/nfs3/onegene/user/group1/linxingzhong/opt/bin:$PATH
#export PATH=$PATH:/nfs2/pipe/RNA/soft/R-3.1.2/bin
export PYTHONPATH=/nfs3/onegene/user/group1/linxingzhong/opt/local/lib/python2.6/site-packages
alias tmux='tmux -2'
#export R_LIBS=/nfs3/onegene/user/group1/linxingzhong/opt/R-packages
export R_LIBS=/nfs3/onegene/user/group1/linxingzhong/opt/R-packages
#[ -f $HOME/opt/bin/zsh ] && exec $HOME/opt/bin/zsh -l
zsh

After I remove the last line, I can connect to the sftp. This is weird.

added 12381 characters in body
Source Link
l0o0
  • 151
  • 1
  • 6
Loading
added 49 characters in body
Source Link
l0o0
  • 151
  • 1
  • 6
Loading
added 280 characters in body
Source Link
l0o0
  • 151
  • 1
  • 6
Loading
added 8042 characters in body
Source Link
l0o0
  • 151
  • 1
  • 6
Loading
formatting and typos
Source Link
MelBurslan
  • 7.1k
  • 2
  • 26
  • 35
Loading
Source Link
l0o0
  • 151
  • 1
  • 6
Loading