Dropbear SSH Tunnel disconnected if upload a file - ssh

i am newbie here.
I want to create ssh tunnel application,
but i have a problem with my application.
If I trying to upload a file (>500kb) trough that SSH Tunnel, my internet connection getting not responding and after that I'm disconnected from server.
what is the problem? do ssh server have a limit to upload connection?
*I use dropbear for ssh server

Related

ssh tunnel VNC server connection closed unexpectedly

I have to tunnel the VNC server(tightvnc-server) running on my local machine to a remote server, so at remote server can access my local machine without port forwarding on router(at local machine network).
Right now I am using the following command
ssh -R 5950:localhost:5900 user#remote.ddns.net
Where 5900 the vnc server port on my local machine. And I have to access the machine from remote server using the command localhost:5950. And when I try to connect using vnc viewer I am getting the error connection closed unexpectedly. Normally if no connection exist I was getting connection refused error. But here something is missing in tunneling. Can any please tell me what could be the reason.
You need to activate the remote desktop, running:
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart \ -activate -configure -access -on \ -restart -agent -privs -all
Then you can connected using VNC Viewer

SCP times out, but ssh connection works fine. Am I doing something wrong?

I'm trying to copy task1.zip from my desktop /Users/myname/desktop if I pwd, to a remote server. I'm connected to the remote server via ssh. I would like to copy the file to /its/home/jt463/task1(pwd path from the directory) on the remote server.
I have used the command below in the terminal when I'm connected to the server via ssh and tried it on the terminal on my machine:
scp Users/myname/desktop/task1.zip username#inf900179.inf.susx.ac.uk:its/home/username/task1
Error that I get when I try to use the terminal that's connected to the remote server:
Users/jonatantibarovsky/desktop/task1.zip: No such file or directory
Error that I get when I try to use my local terminal:
ssh: connect to host inf900179.inf.susx.ac.uk port 22: Operation timed out lost connection
First scp to the intermediate server, using your credentials. Then, you should be able to scp from that server to the target.

Unable to ping my remote machine using Ansible

I have a remote machine to which I want the connection to be set.
This is my hosts file:
[remote]
192.168.51.2
where 192.168.51.2 is the private ip of the remote machine.
When I try pinging it using ansible remote -m ping, I get the following error:
192.168.51.2 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh.",
"unreachable": true
}
I did not mention the credentials of that remote machine anywhere, but I don't think that's the problem here. It is failing to connect via SSH.
What do I do?
I did not mention the credentials of that remote machine anywhere, but I don't think that's the problem here. It is failing to connect via SSH.
This is the exact cause of your problem.
Ansible does not use a network (ICMP) ping, but a more complex procedure involving logging on to a remote machine via SSH and running Python script to respond.
You must provide the credentials either in the form of the private-public key-pair or a password.
Ansible basics are well documented and available here. The Remote Connection Information section of the Getting Started guide explains the way Ansible connects to remote hosts.
Leave the fingerprint of the master server to the remote server first before pinging to the remote server with ansible.
So "log in & log out the remote server first from the master server. Then, ping to the remote server with ansible."
I also couldn't ping to a remote server so I did the solution above ↑↑↑
Then, I could ping to the remote server.
I don't know what's happening backside but this solution will work.

Create ssh tunnel for avoid firewall blocking

I have remote host/server with ssh access.
I have my computer in my work network which can connect via ssh only
in within this network.
And i can not connect via ssh to other world because of port 22
blocked by firewall.
I am trying to create ssh tunnel to forward example localhost:80 to remote_server:22.(i suppose to connect via ssh to localhost and will be forwarded to my remote server)
I tried for example without proxy
sudo ssh -L localhost:443:remote_server_ip:22 root#remote_host_name
and with proxy
https://wiki.archlinux.org/index.php/Tunneling_SSH_through_HTTP_proxies_using_HTTP_Connect
I have read a lot and checked stackoverflow but it still is not clear for me how to resolve this issue.

freeSSHD cannot be accessed by scp

I am running freeSSHD on Windows A, and need to transfer file with it by scp. The Windows running freesshd can be connected via ssh client. but neither WinSCP on Windows nor scp on Linux cannot connect to the Windows with freeSSHD. The errors are:
on Linux:
test#workstation:~$ scp -r /home/test/scptest test#192.168.91.238:/C:\Users\dejavu\Desktop
test#192.168.91.238's password:
exec request failed on channel 0
lost connection
on windows:
'scp' protocol is selected to transfer file and the port is default 22.
The error is simply host is not communicating for more than 15 seconds. still waiting...
scp, as many other things, is two-side protocol. It requires scp to be present on both client and server. When you issue copy command, ssh connects to given server and spawns scp process, which your local scp then communicates with. In your case, there is no scp on server, so no communication possible.
rsync behaves in exactly the same way.
I guess in your case you could try sftp.