I ran through this guide
however i have a problem and a question!
My client is receiving Connection Refused, strange since keyscan worked (which i ended up putting in my known_host file
C:\Users\owg\OneDrive\Documents\sshkeys\for git stuff>ssh-keyscan -t rsa 192.168.1.1 # 192.168.1.1:22 SSH-2.0-OpenSSH_8.2 192.168.1.1 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAA.......Yqhzeg594kxXDOfn4YnF+rjgnCOLs= C:\Users\owg\OneDrive\Documents\sshkeys\for git stuff> ssh firstname.lastname@example.org "gitolite setup -pk admin.pub" ssh: connect to host 192.168.1.1 port 22: Connection refused C:\Users\owg\OneDrive\Documents\sshkeys\for git stuff>ssh email@example.com ssh: connect to host 192.168.1.1 port 22: Connection refused
so thats my problem i was hoping someone could help with
my question (moving forward after fixing the problem) is that what do i need to do to allows others (outside lan) to access it? do i just port forward 22 to 192.168.1.1 ?
i did install openssh-server
seems that openssh-server is crashing often
lsof -i -P -n | grep LISTEN
which shows its running
sshd 6366 root 3u IPv4 17244 0t0 TCP *:22 (LISTEN)
sshd 6366 root 4u IPv6 17246 0t0 TCP *:22 (LISTEN)
but trying to make that last call (from the guide) causes it to crash (no longer listed in lsof). it seems like other things cause this to happen as well like bad login...
just found some errors in the sys log
Thu Aug 20 13:30:01 2020 auth.crit sshd: fatal: Couldn't obtain random bytes (error 0x909006c)
Thu Aug 20 13:30:04 2020 auth.info sshd: Accepted password for git from 192.168.1.104 port 57182 ssh2
Thu Aug 20 13:30:04 2020 auth.crit sshd: fatal: privsep_preauth: preauth child terminated by signal 31