티스토리

구차니의 잡동사니 모음
검색하기

블로그 홈

구차니의 잡동사니 모음

minimonk.net/m

나란히 동등하게 함께

구독자
7
방명록 방문하기
공지 블로그 주인장 장가갑니다 모두보기

주요 글 목록

  • ssh-copy-id 와!! 이런 개꿀 명령어가?!?!?직접 키 복사해서 넣어도 되지만 한번만 접속하면 알아서 복사해주니 개 꿀! ssh-copy-id [-i [identity_file]] [user@]machine[링크 : https://linux.die.net/man/1/ssh-copy-id] [링크 : https://itzone.tistory.com/694] 공감수 0 댓글수 0 2025. 4. 18.
  • ssh socks proxy 예전에 해봤는데 안되길래 포기했던 녀석들..이제는 시간이 지났으니 잘 되려나? ssh -D[링크 : https://superuser.com/questions/408031/differences-between-ssh-l-to-d] wget은 socks proxy 미지원,curl 사용 필요[링크 : https://askubuntu.com/questions/1327783/can-you-set-socks5-proxy-from-linux-command-line] --proxy-server="socks5://myproxy:8080"[링크 : https://www.chromium.org/developers/design-documents/network-stack/socks-proxy/] [링크 : https://thes.. 공감수 0 댓글수 0 2024. 7. 22.
  • ssh ecdsa 미지원(ubuntu 22.04) ubuntu 22.04로 올렸더니 git에서 받으려고 시도했으나 실패해서 옆자리 동료에서 물어보니 ssh 보안관련 문제라고 그래서 추가로 검색해보니 SSL 에서 구버전 암호화 deprecate 시키듯이 SSH 에서도 ed25519 를 구버전 암호화로 사용을 막도록 기본값을 변경해서 생긴 문제인 듯. The RSA SHA-1 hash algorithm is being quickly deprecated across operating systems and SSH clients because of various security vulnerabilities, with many of these technologies now outright denying the use of this algorithm. It seem.. 공감수 0 댓글수 0 2023. 5. 30.
  • ubuntu ssh x11 forwarding시 gnome 화면 끌어오기 20.10 에서 테스트 완료. 18.04 에서도 해봐야 하려나? (세션 로그아웃 시기키 귀찮은디..) $ sudo vi /etc/gdm3/custom.conf # GDM configuration storage # # See /usr/share/gdm/gdm.schemas for a list of available options. [daemon] # Uncoment the line below to force the login screen to use Xorg WaylandEnable=false # Enabling automatic login # AutomaticLoginEnable = true # AutomaticLogin = user1 # Enabling timed login # TimedLoginEna.. 공감수 0 댓글수 0 2022. 7. 11.
  • ssh 슈도 터미널 실행 ssh를 통해 원격명령어 실행하려는데 watch의 경우 실행이 되지 않아 찾아보니 -t 옵션을 주어 pseudo-tty 할당하도록 하면 실행이 된다. ssh -t [링크 : https://stackoverflow.com/questions/47936491/using-watch-with-ssh] 공감수 0 댓글수 0 2022. 4. 25.
  • ssh Are you sure you want to continue connecting (yes/no)? 호스트의 키가 변경되면 ssh 로그인시 경고를 날리는데 -y 같이 해당 옵션을 무조건 yes로 무시하는게 없나 찾아보는 중 $ ssh 192.168.53.144 The authenticity of host '192.168.53.144 (192.168.53.144)' can't be established. ECDSA key fingerprint is SHA256: Are you sure you want to continue connecting (yes/no)? 개인적으로는 옵션으로 처리가능한게 깔끔해서 좋음. $ ssh 192.168.53.144 -o StrictHostKeyChecking=no Warning: Permanently added '192.168.53.144' (ECDSA) to the lis.. 공감수 0 댓글수 0 2022. 4. 25.
  • sshd 에서 ssh 로그인 끄고 sftp만 허용하기 아.. 설정은 가능하구나. $ sudo vim /etc/sshd_config #Subsystem sftp /usr/lib/openssh/sftp-server Subsystem sftp internal-sftp [링크 : https://techglimpse.com/allow-sftp-disallow-ssh-ubuntu/] 공감수 0 댓글수 0 2022. 4. 1.
  • ssh 압축전송하기 거창할 것 없이 -C 옵션 하나 주면 끝! 아쉽게도 압축레벨을 정할 순 없다. Connecting with compression A SSH tunnel does not only have the advantage that nobody can listen in on your transfers, but also another neat feature of SSH…. compression. To add compression to your connection just add a -C to the command which you use to connect with. ssh -C user@server.com -L 5901:192.168.0.10:5901 [링크 : https://www.axllent.org/docs/s.. 공감수 0 댓글수 0 2021. 12. 14.
  • ssh 원격 명령어 실행 그냥 ssh id@hostname "commands" 하면 되는 듯 예전에 찾은적이 있던 것 같기도 한데... [링크 : https://stackoverflow.com/questions/18502945/how-to-execute-a-remote-command-over-ssh-with-arguments] 공감수 0 댓글수 0 2021. 9. 29.
  • reverse ssh 회사에서 외부로 나가는건 되어도 외부에서 들어오는건 안되니까 reverse SSH로 집에 라즈베리 해놓고 연결해 두면 라즈베리 통해서 회사로 접속이 가능한건가? [링크 : http://chess72.tistory.com/160] + 2021.01.12 딱히 가능한 방법은 안보이는데 -N 옵션을 주면 터널을 유지하고 명령을 보내지 않는 것으로 보인다 [링크 : https://fmyson.tistory.com/384] [링크 : https://unix.stackexchange.com/questions/133863] + 위의 내용을 자세히 읽어보니 회사에서 집으로 연결하고(집에 라즈베리로 하나 포트 열어서 포트포워딩을 해주어야 하고) 집에서는 라즈베리의 Remote port로 접속하면 끝! 이라는 것 그런데 .. 공감수 0 댓글수 0 2021. 1. 3.
  • ssh blowfish -c로는 안되고 -o Cipher로는 되네 [링크 : https://www.tweaked.io/guide/scp/] 공감수 0 댓글수 0 2019. 9. 24.
  • ssh tunnel proxy [링크 : 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.. 공감수 0 댓글수 0 2019. 9. 20.
  • ssh remote port forwarding netstat에서 다음과 같은 신기한게 있어서 검색sshd: root@pt 아무튼.. 원격에서 ssh를 통해서 포트포워딩 해서 쓸 수 있도록 하는거 같은데..한개의 포트라면 이게 더 깔끔 하려나?Remote port forwardingRemote 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 d.. 공감수 0 댓글수 0 2019. 1. 28.
  • reverse SSH 먼지 모르겠다... 천천히 읽어 봐야지 [링크 : https://toic.org/blog/2009/reverse-ssh-port-forwarding/] 공감수 0 댓글수 0 2018. 5. 14.
  • rpi vpn client 웹서버 구축하고iptime의 vpn서버 에 붙여서내부 아이피로 연결 후공유기에서포트 포워딩하면 되는걸려나? +2018.05.12 음.. 일반 패키지는 아니고 빌드해야 하나?[링크 : https://gist.github.com/superjamie/ac55b6d2c080582a3e64] 공감수 0 댓글수 0 2018. 5. 11.
  • scp: ambiguous target 에러 공백이 있어서 \를 해주었는데 안되서괄호까지 동원하니 해결.... 머지? $ 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] 공감수 1 댓글수 0 2016. 9. 21.
  • sshpass를 이용한 scp 암호 자동 입력 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 패키지를 별도로 설치해 주어야 한다. 공감수 0 댓글수 0 2016. 9. 19.
  • ssh X11 forwarding 속도 향상 [링크 : 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 compre.. 공감수 0 댓글수 0 2015. 9. 24.
  • sshd server key 경로 서버키 재 생성할 일 있으면/etc/sshd/sshd_hosts* 파일들을 삭제하고sshd 서버를 재시작하면 된다. [링크 : http://www.softec.lu/site/DevelopersCorner/HowToRegenerateNewSsh] 공감수 0 댓글수 0 2015. 1. 6.
  • ssh 아이디 입력후 로그인 패스워드 입력이 지연되는 문제 ubuntu 에서도 적용됨(10.04 LTS) $ vi /etc/ssh/sshd_config UseDNS no [링크 : http://server.tistory.com/144] [링크 : http://kiin.wordpress.com/2012/02/21/how-to-decrease-ssh-connection-time-on-centos/] 공감수 0 댓글수 0 2014. 9. 3.
  • ssh X11 forwarding 옵션 예전 글들을 보다 보니 X11 forwarding과 Trusted X11 forwarding 두가지가 존재하는걸 알게 되었는데.. $ man ssh -X Enables X11 forwarding. This can also be specified on a per-host basis in a configuration file. X11 forwarding should be enabled with caution. Users with the ability to bypass file permissions on the remote host (for the user's X authorization database) can access the local X11 display through the forwarded con.. 공감수 0 댓글수 0 2012. 1. 25.
  • ssh X11 터널링 리눅스(우분투)에서 $ ssh -p 0000 -X userid@domain 으로 하면 로컬에서 X11 화면을 끌어 올 수 있다. 문득 이렇게 하면 로컬인지 리모트인지 알 방법이 없잖아? 라고 고민했는데 프로그램 띄우고 나서 바로 이해됨 (domain 에서) 라고 별도로 표기된다! 생각해보니 윈도우에서는 표기가 안되던데.. 우분투나 리눅스 전용 기능인가? 공감수 0 댓글수 0 2012. 1. 24.
  • scp 사용하기 scp는 ssh를 통해 cp를 수행하는데.. cp 명령답게 scp target destination 식으로 옵션을 주어야 한다 -_- 그리고 sftp에 비해서 편한점은 -P port 옵션이 기본 제공된다는 점? usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[user@]host1:]file1 ... [[user@]host2:]file2 usage: sftp [-1Cv] [-B buffer_size] [-b batchfile] [-F ssh_config] [-o ssh_option] [-P sftp_server_path] [-R num.. 공감수 0 댓글수 0 2011. 4. 18.
  • 다중 X11 터널링? 회사 외부에서 회사 Redhat 서버로 접속하고 Redhat 서버에서 Ubuntu 서버로 접속하면 X11이 두단계를 거쳐 띄울수가 있다. 그런데.. 회사 내부에서 Ubuntu 에서 접속하고 Redhat으로 접속하면.. 왜 안될까? 아마도 /etc/ssh/ssh_config 파일의 설정이 달라서 그런듯하다. 레드햇 쪽은 아래와 같은 설정이 되어있다. Host * ForwardX11 yes 그에반해 우분투 10.04 LTS는 Host * SendEnv LANG LC_* HashKnownHosts yes GSSAPIAuthentication yes GSSAPIDelegateCredentials no 이렇게 입력이 되어있다. 아마도 X11 Forwarding (터널링이 아닌)이 설정되어 있어서 다중으로 가능한 .. 공감수 0 댓글수 0 2010. 11. 12.
  • ssh 접속이 안되는 경우 - Host key verification failed. 서버를 교체하거나, 서버의 아이피 변경으로 인해 기존의 서버의 아이피와 겹칠경우 ${HOME}/.ssh/known_hosts 파일에 이전의 정보가 남아있는 바람에 생기는 에러이다. "에러" 라고 한이유는, 경고라고 해놓고 접속이 안되기 때문이다. 해결 방법은, 위의 파일을 삭제하거나(그러면 다음 접속시 키를 다 받아야 하는 귀차니즘이) 해당 서버의 아이피가 들어있는 줄을 지우면 된다. $ ssh USERID@SERVER_IP @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.. 공감수 0 댓글수 2 2010. 3. 6.
  • [linux console] sftp - secure file transfer program sftp는 ssh를 이용한 ftp이다. 별다르게 설정하지 않았다면, 기본값으로 ssh를 통해 sftp로 전송이 가능하다. SYNOPSIS sftp [-1Cv] [-B buffer_size] [-b batchfile] [-F ssh_config] [-o ssh_option] [-P sftp_server_path] [-R num_requests] [-S program] [-s subsystem | sftp_server] host sftp [[user@]host[:file [file]]] sftp [[user@]host[:dir[/]]] sftp -b batchfile [user@]host 사용방법은 위와 같은데 간단하게 예를 들자면, # sftp root@192.168.10.10:/home.tar home... 공감수 0 댓글수 0 2009. 7. 29.
  • ssh에서 sftp 사용하지 않도록 하기 (사용 막기) / sftp만 사용하도록 제한하기 ssh를 사용하면 sftp는 기본으로 사용할 수 있게 된다. 문득, sftp를 막을 수 있는 방법을 없을까? 라는 생각이 들었는데.. 아래의 링크에서 사용하지 못하도록 하는 방법을 찾게 되었다. $ vi /etc/ssh/sshd_config 72 # Allow client to pass locale environment variables 73 AcceptEnv LANG LC_* 74 75 Subsystem sftp /usr/lib/openssh/sftp-server 76 77 UsePAM yes 를 75 #Subsystem sftp /usr/lib/openssh/sftp-server 로 해주면 된다고 한다. ※ ubuntu 9.04의 sshd_config파일 행번호임. 원본 내용은 RHEL(RedHat .. 공감수 0 댓글수 0 2009. 6. 5.
  • SSH 접속후 SSH 접속시 안될경우 SSH로 서버에 접속 후, 서버에서 로컬의 다른 서버로 SSH 접속을 하는데 아래와 같은 경우를 만났다. [userid@hostname ~]$ ssh localserver_ip @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attac.. 공감수 0 댓글수 0 2009. 5. 20.
  • 우분투 SSH 접속시 메시지 변경하기 우분투에 ssh를 설치후 접속하면 아래와 같이 무진장 긴 메시지가 나온다 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. To access official Ubuntu documentation, please visit: http://help.ubuntu.com/ /etc/motd.tail.. 공감수 0 댓글수 0 2009. 5. 7.
  • Ubuntu에 SSH 서버 설치하기 sudo apt-get 방식으로 편하게 설치가 가능하다. 패키지 이름은 ssh 이며 sudo apt-get install ssh 라고 입력하면 바로 설치 된다. ubuntu 8.10 에서 실행시 별다른 설정없이 기본 포트인 22번으로 바로 실행이 되며, X11 Forwarding 역시 문제 없이 별다른 설정없이 가능했다. [출처 : http://sanghoon.wordpress.com/2007/12/05/] 공감수 0 댓글수 0 2009. 4. 25.
    문의안내
    • 티스토리
    • 로그인
    • 고객센터

    티스토리는 카카오에서 사랑을 담아 만듭니다.

    © Kakao Corp.