Secure Shell - a network protocol for exchanging data throughout secure channel with most common uses of remote command execution (remote shell/console) and file transfer.
0
votes
0answers
10 views
Twisted SSH curl “'CreateProcess', 'The system cannot find the file specified.”
I've used twisted to make an SSH server similar to the one shown here. I attempted to add curl functionality to it like so:
class CurlProcessProtocol(protocol.ProcessProtocol):
def ...
0
votes
1answer
17 views
How to clone a local git repository to a repository on the server?
I am currently using this command ::
git clone --bare path/in/local ssh://path/in/server
But this command is creating a new git folder named ssh://path/in/server in my local system and then cloning ...
0
votes
0answers
13 views
SSH to specific computer behind a router if local IP is known [migrated]
I'm hosting a number of websites out of different boxes behind a router; when I was only hosting one, it was simple enough to forward port 22 on to the hosting box and use that one as a remote server ...
-2
votes
0answers
16 views
Why is this SCP client so slow? [closed]
I'm testing an SSH client and have found that it's scp functionality is very slow compared to OpenSSH, but only over the internet. Relatively, OpenSSH is more than 100 times faster. On a local network ...
6
votes
3answers
1k views
Git over ssh without Git being installed on server
I have full access to some folder on a remote Linux server over ssh and scp. I can upload and download files but not install apps. Now I want to put a git repository on this server.
When I try to ...
0
votes
1answer
462 views
PHP SSH Connection via exec works when called from commandline but not via apache
My case is similar to PHP shell_exec running a shellscript with ssh but not the same.
Situation: I exchanged ssh-keys between the 2 servers, switched to the www-data user and connecting to the 2nd ...
0
votes
0answers
3 views
Tunnel with SSH causes “FATAL ERROR: Network error: Connection timed out”
I'm creating application which is connected to database, the database is on my faculty server, so in order to create connection to their server they gave me information how to connect with SSH.
A ...
-1
votes
0answers
18 views
Shell script not recognizing commands
I have a simple shell script wihch is not recognizing simple cmds like cd
I am logged in as user1 , I want to sudo as user2 and execute few commands. What am I missing here?
#!/bin/ksh
sudo -u user2 ...
0
votes
1answer
2k views
EC2 SSH port 22 connection refused even though previously worked
I have an EC2 instance which i've got a couple of sites hosted on and it's previously been workin really nice.
Today I try to SSH into it and it just refusing connections on port 22 even though the ...
1
vote
0answers
25 views
SSH parameter help on Ubuntu Server [migrated]
I have a variable setup like this:
SSH_EXEC="ssh -X -o ControlPath=~/.ssh/master-$$ -o ControlPersist=60"
The parameter in question is the -X, because if I then call this command within my local ...
0
votes
4answers
62 views
How do i run 'composer' command via SSH?
I want to reload my project's custom classes in Laravel so they become accessible, but on a shared hosting enviroment. To my understanding, so far, locally, I've been achieving the desired by using ...
0
votes
0answers
10 views
How to do remote ssh non-interactively
I am trying to connect to a remote host from my local host through the below command.But there was a setting in the remote host that soon after we login it will prompt to enter a badge ID,password and ...
53
votes
8answers
26k views
com.jcraft.jsch.JSchException: UnknownHostKey
I don't know how SSH works and I think that's a simple question. How do I fix that exception:
com.jcraft.jsch.JSchException: UnknownHostKey: mywebsite.com.
RSA key fingerprint is ...
2
votes
1answer
1k views
git and ssh: Could not resolve hostname, ping works
I have installed RasPi Raspbian, and now I can't do ssh or git clone, only local host names are being resolved it seems. And yet ping works:
pi ~ $ ssh test.com
ssh: Could not resolve hostname ...
1
vote
2answers
159 views
+50
'Port' object has no attribute 'socket'
I'm using twisted python to make a simple SSH server on a custom port. I create a Port object with port = reactor.listenTCP(_port, sshfactory), where _port is a variable that holds the integer of the ...