Problem #1
It show error:
"The server rejected SFTP connection, but it listens for FTP connections."
Solution:
1. To install it, open terminal (Ctrl+Alt+T) or log in Ubuntu server and run command:
sudo apt-get install openssh-server
2. After that, you should have SSH service enabled in your system, you may check its status by running command:
sudo service ssh status
Problem #2
Using winscp to transfer file from windows machine to Ubuntu
It show error:
"The server rejected SFTP connection, but it listens for FTP connections."
Solution:
1. To install it, open terminal (Ctrl+Alt+T) or log in Ubuntu server and run command:
sudo apt-get install openssh-server
2. After that, you should have SSH service enabled in your system, you may check its status by running command:
sudo service ssh status
Problem #2
Can I add a shortcut to replace a path in Linux?
Solution
https://askubuntu.com/questions/58814/how-do-i-add-environment-variables
vi ~/.bashrc
add below line to end of file .bashrc
export MTRUMPY_SRC=/home/thaidao/work/project/mTrumpy/src
source ~/.bashrc
When you want to go directory MTRUMPY_SRC, just type "cd $MTRUMPY_SRC"
https://stackoverflow.com/questions/862966/hide-all-notmatching-lines-in-vim
Problem #3 SVN command in use
Get latest commit from remote server
svn update
Push local modification to server
svn commit -m "commit message content"
Display log in short format (no affected path and no message log)
Ex: print out 2018 recent commits.
svn log -l 2018
Print all affected paths with each log message
Ex: For 2018 recent commits.
svn log -v -l 2018
Options:
-l is --limit
-v is --verbose (dài dòng)
-q is --quite
https://stackoverflow.com/questions/862966/hide-all-notmatching-lines-in-vim
Problem #3 SVN command in use
Get latest commit from remote server
svn update
Push local modification to server
svn commit -m "commit message content"
Display log in short format (no affected path and no message log)
Ex: print out 2018 recent commits.
svn log -l 2018
Print all affected paths with each log message
Ex: For 2018 recent commits.
svn log -v -l 2018
Options:
-l is --limit
-v is --verbose (dài dòng)
-q is --quite
Comments
Post a Comment