본문 바로가기

전체 글86

Ubuntu key.pem 없이 비밀번호로 접속 설정 [AWS EC2 Ubuntu] 이 설정을 하지 않으면 cmd에서 다음으로 접속해야한다. ssh -i [key.pem] [user(ubuntu)]@[ec2 ip] 다음의 설정을 하면 ssh [user(ubuntu)]@[ec2 ip] 로 접속할 수 있다. ------------------------------ step 1. user의 passwd 설정 sudo passwd user(ubuntu) step 2. 다음의 파일 접속 sudo vi /etc/ssh/sshd_config step 3. yes로 수정 PasswordAuthentication yes step 4. 재시작 sudo service sshd restart 2022. 3. 11.
SwiftUI Share File Button [SwiftUI] 코드 Button(action: { exportShow = true }) { Image(systemName: "square.and.arrow.up") .frame(width: 30.0, height: 30.0) } .sheet(isPresented: $exportShow) { if let dir = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first { let fileURL = dir.appendingPathComponent(repo_n + "/") // 디렉토리 공유 (파일 이름 넣으면 파일을 공유할 수 있음) ShareSheet(activityItems: [fileURL]) } } struct Sh.. 2022. 2. 18.
Spring boot 포트 변경 [Spring boot] Project > src > main > resources > application.properties service.port = 원하는 포트 2022. 2. 17.
error: 리모트 묶음 풀기 실패: unable to create temporary object directory [Git bare repository] hyeminchoi@Hyeui-MacBookPro A % git push Username for 'http://0.0.0.0': ubuntu Password for 'http://ubuntu@0.0.0.0': 오브젝트 나열하는 중: 3, 완료. 오브젝트 개수 세는 중: 100% (3/3), 완료. Delta compression using up to 8 threads 오브젝트 압축하는 중: 100% (2/2), 완료. 오브젝트 쓰는 중: 100% (2/2), 235 bytes | 235.00 KiB/s, 완료. Total 2 (delta 0), reused 0 (delta 0), pack-reused 0 error: 리모트 묶음 풀기 실패: unable to cre.. 2022. 2. 16.