The command you are trying is looking for `file.ext` on your local machine. To copy a file from the remote machine to the local one, use `scp -P 2222 username@domain:dir/file.ext localdir` (assuming that `file.ext` is in `~/dir` on the remote computer, as in your example).